Skip to content

Commit f6345d7

Browse files
authored
Save options back to signal.value in VSCode (#7484)
1 parent e00df1e commit f6345d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

firebase-vscode/src/cli.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ export async function requireAuthWrapper(
8080
// over Google login tokens and must be removed if a Google
8181
// account is the current user.
8282
try {
83-
const userEmail = await requireAuth(currentOptions.value); // client email
83+
const optsCopy = currentOptions.value;
84+
const userEmail = await requireAuth(optsCopy); // client email
8485
// SetAccessToken is necessary here to ensure that access_tokens are available when:
8586
// - we are using tokens from configstore (aka those set by firebase login), AND
8687
// - we are calling CLI code that skips Command (where we normally call this)
87-
88+
currentOptions.value = optsCopy;
8889
setAccessToken(await getAccessToken());
8990
if (userEmail) {
9091
pluginLogger.debug("User found: ", userEmail);

0 commit comments

Comments
 (0)