Skip to content

Commit

Permalink
fix: Fix the property names when initializing the SDK with ServiceAcc…
Browse files Browse the repository at this point in the history
…ount type (#2779)
  • Loading branch information
lahirumaramba authored Nov 20, 2024
1 parent a6a930c commit 380ef0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/credential-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,10 @@ function populateGoogleAuth(keyFile: string | object, httpAgent?: Agent)
'Service account must be an object.',
);
}
copyAttr(keyFile, keyFile, 'project_id', 'projectId');
copyAttr(keyFile, keyFile, 'private_key', 'privateKey');
copyAttr(keyFile, keyFile, 'client_email', 'clientEmail');

client = auth.fromJSON(keyFile);
}
return { auth, client };
Expand Down

0 comments on commit 380ef0a

Please sign in to comment.