Skip to content

Commit

Permalink
feat: Add userinfo.email scope (#15) (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcelo Mendonça <mendonca2709@gmail.com>
  • Loading branch information
bharathkkb and mtmendonca committed Apr 7, 2021
1 parent 042366a commit fb20944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gkeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ export class ClusterClient {
// This method looks for the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS
// environment variables.
this.auth = new GoogleAuth({
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
scopes: [
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/userinfo.email',
],
});
// Set credentials, if any.
let jsonContent;
Expand Down

0 comments on commit fb20944

Please sign in to comment.