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

Function recordCredentials

src/auth.ts:473–480  ·  view source on GitHub ↗
(creds: UserCredentials)

Source from the content-addressed store, hash-verified

471
472// recordCredentials saves credentials to configstore to be used in future command runs.
473export function recordCredentials(creds: UserCredentials) {
474 configstore.set("user", creds.user);
475 configstore.set("tokens", creds.tokens);
476 // store login scopes in case mandatory scopes grow over time
477 configstore.set("loginScopes", creds.scopes);
478 // remove old session token, if it exists
479 configstore.delete("session");
480}
481
482async function loginRemotely(): Promise<UserCredentials> {
483 const authProxyClient = new apiv2.Client({

Callers 1

loginPrototyperFunction · 0.85

Calls 2

deleteMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…