mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 01:21:10 -07:00
fix(auth): Return empty map if token file does not exits, and refacto… (#12332)
Co-authored-by: Sandy Tao <sandytao520@icloud.com>
This commit is contained in:
@@ -433,6 +433,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
const handleApiKeySubmit = useCallback(
|
||||
async (apiKey: string) => {
|
||||
try {
|
||||
onAuthError(null);
|
||||
if (!apiKey.trim() && apiKey.length > 1) {
|
||||
onAuthError(
|
||||
'API key cannot be empty string with length greater than 1.',
|
||||
|
||||
Reference in New Issue
Block a user