File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments