From 863a1313a358a5f1ee8aa5938687f1555233b203 Mon Sep 17 00:00:00 2001 From: Eben Freeman Date: Sat, 26 Sep 2015 19:50:11 -0700 Subject: [PATCH] (fix)onboarding: Must pass approval_prompt=force for Google OAuth Otherwise, if you've ever previously authorized your account against Edgehill's Google client ID but need to reconnect it, the consent page is bypassed and no refresh token is returned to the callback URL, breaking the rest of the flow. --- internal_packages/onboarding/lib/account-choose-page.cjsx | 1 + 1 file changed, 1 insertion(+) diff --git a/internal_packages/onboarding/lib/account-choose-page.cjsx b/internal_packages/onboarding/lib/account-choose-page.cjsx index 14817e3a2..6afeb644f 100644 --- a/internal_packages/onboarding/lib/account-choose-page.cjsx +++ b/internal_packages/onboarding/lib/account-choose-page.cjsx @@ -85,6 +85,7 @@ class AccountChoosePage extends React.Component https://mail.google.com/ \ https://www.google.com/m8/feeds \ https://www.googleapis.com/auth/calendar' + approval_prompt: 'force' }) shell.openExternal(googleUrl)