Skip to content

Commit 9d86bf9

Browse files
Fix issue where login didnt work as expected on studio (#8914)
* Fix issue where login didnt work as expected on studio * Update src/commands/login.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent eba9084 commit 9d86bf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/login.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const command = new Command("login")
2828
const user = options.user as User | undefined;
2929
const tokens = options.tokens as Tokens | undefined;
3030

31-
if (user && tokens && !options.reauth) {
31+
if (user && tokens?.refresh_token && !options.reauth) {
3232
logger.info("Already logged in as", clc.bold(user.email));
3333
return user;
3434
}
@@ -53,7 +53,7 @@ export const command = new Command("login")
5353
if (geminiUsage || collectUsage) {
5454
logger.info();
5555
utils.logBullet(
56-
"To change your the preference at any time, run `firebase logout` and `firebase login` again.",
56+
"To change your preferences at any time, run `firebase logout` and `firebase login` again.",
5757
);
5858
}
5959
}

0 commit comments

Comments
 (0)