MCPcopy Create free account
hub / github.com/firebase/firebase-tools / refreshAuth

Function refreshAuth

src/requireAuth.ts:91–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91export async function refreshAuth(): Promise<Tokens> {
92 if (!lastOptions) {
93 throw new FirebaseError("Unable to refresh auth: not yet authenticated.");
94 }
95 await requireAuth(lastOptions);
96 return lastOptions.tokens as Tokens;
97}
98
99/**
100 * Ensures that the user can make authenticated calls. Returns the email if the user is logged in,

Callers 1

getAccessTokenFunction · 0.90

Calls 1

requireAuthFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…