Skip to content

Commit

Permalink
Fix usage of OAuth2Client.verifyIdToken in example
Browse files Browse the repository at this point in the history
  • Loading branch information
aknuds1 committed Jan 12, 2018
1 parent b6324ce commit d217b20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/verifyIdToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ async function main() {
const oAuth2Client = await getAuthenticatedClient();

// Verify the id_token, and access the claims.
const ticket = await oAuth2Client.verifyIdToken(
oAuth2Client.credentials.id_token,
keys.web.client_id
);
const ticket = await oAuth2Client.verifyIdToken({
idToken: oAuth2Client.credentials.id_token,
audience: keys.web.client_id,
});
console.log(ticket);

// You can use this info to get user information too.
Expand Down

0 comments on commit d217b20

Please sign in to comment.