Skip to content

Commit

Permalink
fix(deps): upgrade to gtoken 4.x (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Jul 29, 2019
1 parent baae0d2 commit a1fcc25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -22,7 +22,7 @@
"fast-text-encoding": "^1.0.0",
"gaxios": "^2.0.0",
"gcp-metadata": "^2.0.0",
"gtoken": "^3.0.0",
"gtoken": "^4.0.0",
"jws": "^3.1.5",
"lru-cache": "^5.0.0"
},
Expand Down
5 changes: 2 additions & 3 deletions src/auth/jwtclient.ts
Expand Up @@ -211,11 +211,10 @@ export class JWT extends OAuth2Client {
const gtoken = this.createGToken();
const token = await gtoken.getToken();
const tokens = {
access_token: token,
access_token: token.access_token,
token_type: 'Bearer',
expiry_date: gtoken.expiresAt,
// tslint:disable-next-line no-any
id_token: (gtoken.rawToken! as any).id_token,
id_token: gtoken.idToken,
};
this.emit('tokens', tokens);
return {res: null, tokens};
Expand Down

0 comments on commit a1fcc25

Please sign in to comment.