Mailspring/internal_packages/onboarding/lib
Karim Hamidou 3aa4b16b44 [auth] Change a Google OAuth parameter
Summary:
Some of our users who reauth are getting weird errors from Google — it seems that in some cases Google OAuth doesn’t pass us a `refresh_token`, even though we ask for one by passing `approval_prompt=force` (I’ve landed a commit to log more details about this in edgehill-server —- 6e984ffa26 — but this won’t fix the problem).

Apparently, Google recently « soft-deprecated » `approval_prompt` in favor of a new parameter called `prompt`, which does mostly the same thing (https://developers.google.com/identity/protocols/OAuth2WebServer#formingtheurl)

This diff replaces `approval_prompt` by `prompt`.

Test Plan: Tested by authing a Gmail account and checking that it worked.

Reviewers: bengotow

Reviewed By: bengotow

Subscribers: emfree

Differential Revision: https://phab.nylas.com/D2557
2016-02-19 11:20:36 -08:00
..
account-choose-page.cjsx [auth] Change a Google OAuth parameter 2016-02-19 11:20:36 -08:00
account-settings-page.cjsx Disallow Gmail accounts from entering IMAP flow 2016-02-04 09:54:01 -08:00
account-types.coffee fix(onboarding): remove ssl-enabled checkbox 2016-02-15 16:51:02 -05:00
initial-packages-page.cjsx feat(newsletter): Manage subscription directly from N1 2016-01-07 18:44:40 -08:00
initial-preferences-page.cjsx Fix AccountStore.current() references in private packages 2016-01-25 18:02:56 -08:00
main.coffee fix(system-start): Do not continue when checkAvailability returns false 2016-02-06 11:35:01 -08:00
nylas-api-environment-store.coffee refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
onboarding-actions.coffee fix(onboarding): Invitation code system, just in case 2015-10-04 16:49:41 -07:00
page-router-store.coffee fix(analytics): delay closing of onboarding window 2016-02-12 10:56:36 -08:00
page-router.cjsx refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
token-auth-api.coffee refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
token-auth-page.cjsx refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
welcome-page.cjsx fix(onboarding): Missing require for Actions, bad CSS 2016-02-17 22:21:23 -08:00