Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow passing maxExpiry to verifyIdToken #223

Merged
merged 3 commits into from
Jan 3, 2018
Merged

feat: allow passing maxExpiry to verifyIdToken #223

merged 3 commits into from
Jan 3, 2018

Conversation

JustinBeckwith
Copy link
Contributor

Addresses #118

BREAKING CHANGE: The parameters to the `verifyIdToken` method of
OAuth2Client have been changed. The function now accepts a single
options object, and an optional callback. A function that used
to look like this:

```js
oAuth2Client.verifyIdToken(idToken, audience, callback);
```

Would now be rewritten as this:

```js
oAuth2Client.verifyIdToken({
  idToken: idToken,
  audience: audience
}, callback);
```
@JustinBeckwith JustinBeckwith requested review from ofrobots and a team December 30, 2017 18:12
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 30, 2017
callback?: (err: Error|null, login?: LoginTicket|null) => void):
void|Promise<LoginTicket|null> {
// This funtion used to accept two arguments instead of an options object.
// Check the types to help users upgrade with less pain.

This comment was marked as spam.

This comment was marked as spam.

@JustinBeckwith JustinBeckwith merged commit de8e298 into googleapis:next Jan 3, 2018
ofrobots pushed a commit that referenced this pull request Jan 9, 2018
BREAKING CHANGE: The parameters to the `verifyIdToken` method of
OAuth2Client have been changed. The function now accepts a single
options object, and an optional callback. A function that used
to look like this:

```js
oAuth2Client.verifyIdToken(idToken, audience, callback);
```

Would now be rewritten as this:

```js
oAuth2Client.verifyIdToken({
  idToken: idToken,
  audience: audience
}, callback);
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants