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

Function setScopes

src/api.ts:185–196  ·  view source on GitHub ↗
(sps: string[] = [])

Source from the content-addressed store, hash-verified

183
184/** Sets scopes for API calls. */
185export function setScopes(sps: string[] = []): void {
186 commandScopes = new Set<string>([
187 scopes.EMAIL,
188 scopes.OPENID,
189 scopes.CLOUD_PROJECTS_READONLY,
190 scopes.FIREBASE_PLATFORM,
191 ]);
192 for (const s of sps) {
193 commandScopes.add(s);
194 }
195 logger.debug("> command requires scopes:", Array.from(commandScopes));
196}

Callers

nothing calls this directly

Calls 2

fromMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…