mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 11:04:42 -07:00
feat(auth): Improve auth dialog error handling and messaging (#11320)
This commit is contained in:
@@ -33,9 +33,11 @@ export const useAuthCommand = (settings: LoadedSettings, config: Config) => {
|
||||
const [authError, setAuthError] = useState<string | null>(null);
|
||||
|
||||
const onAuthError = useCallback(
|
||||
(error: string) => {
|
||||
(error: string | null) => {
|
||||
setAuthError(error);
|
||||
setAuthState(AuthState.Updating);
|
||||
if (error) {
|
||||
setAuthState(AuthState.Updating);
|
||||
}
|
||||
},
|
||||
[setAuthError, setAuthState],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user