File tree Expand file tree Collapse file tree 2 files changed +1296
-1240
lines changed Expand file tree Collapse file tree 2 files changed +1296
-1240
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,8 @@ export class GoogleAuth {
288288 */
289289 async _tryGetApplicationCredentialsFromEnvironmentVariable (
290290 options ?: RefreshOptions ) : Promise < JWT | UserRefreshClient | null > {
291- const credentialsPath = process . env [ 'GOOGLE_APPLICATION_CREDENTIALS' ] ;
291+ const credentialsPath = process . env [ 'GOOGLE_APPLICATION_CREDENTIALS' ] ||
292+ process . env [ 'google_application_credentials' ] ;
292293 if ( ! credentialsPath || credentialsPath . length === 0 ) {
293294 return null ;
294295 }
@@ -583,7 +584,9 @@ export class GoogleAuth {
583584 * @api private
584585 */
585586 private getProductionProjectId ( ) {
586- return process . env [ 'GCLOUD_PROJECT' ] || process . env [ 'GOOGLE_CLOUD_PROJECT' ] ;
587+ return process . env [ 'GCLOUD_PROJECT' ] ||
588+ process . env [ 'GOOGLE_CLOUD_PROJECT' ] || process . env [ 'gcloud_project' ] ||
589+ process . env [ 'google_cloud_project' ] ;
587590 }
588591
589592 /**
You can’t perform that action at this time.
0 commit comments