Skip to content

Commit

Permalink
fix: Fixes mapping of FederatedSignonCertsResponse in verifyIdTokenAs…
Browse files Browse the repository at this point in the history
…ync (#211)
  • Loading branch information
dropdevcoding authored and JustinBeckwith committed Dec 20, 2017
1 parent ee251b2 commit 9ba0a39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/auth/oauth2client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,10 @@ export class OAuth2Client extends AuthClient {
throw new Error('The verifyIdToken method requires an ID Token');
}

const certs = await this.getFederatedSignonCertsAsync();
const response = await this.getFederatedSignonCertsAsync();
const login = this.verifySignedJwtWithCerts(
idToken, certs, audience, OAuth2Client.ISSUERS_);
idToken, response.certs, audience, OAuth2Client.ISSUERS_);

return login;
}

Expand Down

0 comments on commit 9ba0a39

Please sign in to comment.