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 ofrobots committed Jan 9, 2018
1 parent b917e5d commit de318ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/auth/oauth2client.ts
Expand Up @@ -566,9 +566,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 de318ab

Please sign in to comment.