We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a37eb6c commit 474ae14Copy full SHA for 474ae14
src/utils/api-request.ts
@@ -818,6 +818,11 @@ export class AuthorizedHttpClient extends HttpClient {
818
const authHeader = 'Authorization';
819
requestCopy.headers[authHeader] = `Bearer ${token}`;
820
821
+ // Fix issue where firebase-admin does not specify quota project that is necessary for use when utilizing human account with ADC
822
+ if (!requestCopy.headers['x-goog-user-project'] && this.app.options.projectId) {
823
+ requestCopy.headers['x-goog-user-project'] = this.app.options.projectId
824
+ }
825
+
826
if (!requestCopy.httpAgent && this.app.options.httpAgent) {
827
requestCopy.httpAgent = this.app.options.httpAgent;
828
}
0 commit comments