Skip to content

Commit

Permalink
Update api-request.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
foxrafa authored May 14, 2024
1 parent 474ae14 commit 81bdd9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/api-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@ export class AuthorizedHttpClient extends HttpClient {
const authHeader = 'Authorization';
requestCopy.headers[authHeader] = `Bearer ${token}`;

// Fix issue where firebase-admin does not specify quota project that is necessary for use when utilizing human account with ADC
// Fix issue where firebase-admin does not specify quota project that is
// necessary for use when utilizing human account with ADC (RSDF)
if (!requestCopy.headers['x-goog-user-project'] && this.app.options.projectId) {
requestCopy.headers['x-goog-user-project'] = this.app.options.projectId
}
Expand Down

0 comments on commit 81bdd9f

Please sign in to comment.