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

Use tokens from Google Sign-In instead of calling getTokens. #8604

Merged
merged 2 commits into from
Apr 14, 2017

Conversation

benjamn
Copy link
Contributor

@benjamn benjamn commented Apr 14, 2017

Follow-up to #8588.

While testing #8588, I noticed that request.serverAuthCode was sometimes/always an empty string (on iOS, at least), so the query that was passed to getServiceData didn't have a usable .code property.

I then realized that the response from Google Sign-In already contains the tokens that would be returned from getTokens, so this PR avoids calling getTokens in that case, though it still shares most of the serviceData logic.

cc @realyze @ramezrafla @abernix

@benjamn benjamn requested a review from abernix April 14, 2017 21:22
@benjamn benjamn self-assigned this Apr 14, 2017
@benjamn benjamn merged commit 7a9dd2b into devel Apr 14, 2017
@benjamn
Copy link
Contributor Author

benjamn commented Apr 14, 2017

I've merged this and released google-oauth@1.2.3, since it seems to fix Google Sign-In for iOS. Any feedback is still welcome, but let's keep moving forward with patch updates.

@realyze
Copy link
Contributor

realyze commented Apr 14, 2017

@benjamn Hmm, strange, serverAuthCode was always (?) there for me when I tested it. Thanks for looking into this!

abernix pushed a commit that referenced this pull request Apr 25, 2017
* Use tokens from Google Sign-In instead of calling getTokens.

Follow-up to #8588.

* Bump google-oauth package version to 1.2.3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants