Skip to content

Commit

Permalink
Always log reauth error messages (#7875)
Browse files Browse the repository at this point in the history
  • Loading branch information
joehan authored Nov 12, 2024
1 parent d3a522b commit 07c7cd8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@ function open(url: string): void {

// Always create a new error so that the stack is useful
function invalidCredentialError(): FirebaseError {
return new FirebaseError(
const message =
"Authentication Error: Your credentials are no longer valid. Please run " +
clc.bold("firebase login --reauth") +
"\n\n" +
"For CI servers and headless environments, generate a new token with " +
clc.bold("firebase login:ci"),
{ exit: 1 },
);
clc.bold("firebase login --reauth") +
"\n\n" +
"For CI servers and headless environments, generate a new token with " +
clc.bold("firebase login:ci");
logger.error(message);
return new FirebaseError(message, { exit: 1 });
}

const FIFTEEN_MINUTES_IN_MS = 15 * 60 * 1000;
Expand Down

0 comments on commit 07c7cd8

Please sign in to comment.