MCPcopy Create free account
hub / github.com/NirmalScaria/firebase-nextjs / getProjects

Function getProjects

scripts/b_setupProject.mjs:10–21  ·  view source on GitHub ↗
(auth)

Source from the content-addressed store, hash-verified

8}
9
10async function getProjects(auth) {
11 const cloudresourcemanager = google.cloudresourcemanager({
12 version: 'v1',
13 auth
14 });
15
16 const projects = await cloudresourcemanager.projects.list({
17 filter: 'labels.firebase:enabled',
18 });
19
20 return projects.data.projects;
21}
22
23async function selectProject(projects) {
24 const projectChoices = projects.map((project) => {

Callers 1

setupProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected