Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Added new commands for managing Firestore backups and restoring databases (#6778)
- Added new commands for managing Firestore backups and restoring databases. (#6778)
- Fixed quota attribution for Firebase Auth API calls. (#6819)
6 changes: 5 additions & 1 deletion src/gcp/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const apiClient = new Client({ urlPrefix: identityOrigin, auth: true });
export async function getAuthDomains(project: string): Promise<string[]> {
const res = await apiClient.get<{ authorizedDomains: string[] }>(
`/admin/v2/projects/${project}/config`,
{ headers: { "x-goog-user-project": project } },
);
return res.body.authorizedDomains;
}
Expand All @@ -28,7 +29,10 @@ export async function updateAuthDomains(project: string, authDomains: string[]):
>(
`/admin/v2/projects/${project}/config`,
{ authorizedDomains: authDomains },
{ queryParams: { update_mask: "authorizedDomains" } },
{
queryParams: { update_mask: "authorizedDomains" },
headers: { "x-goog-user-project": project },
},
);
return res.body.authorizedDomains;
}