Request Gmail consent

This is necessary for people having used the Gmail quick setup before
This commit is contained in:
M66B
2019-12-21 16:25:23 +01:00
parent f080d34297
commit bd418a275c

View File

@@ -228,7 +228,8 @@ public class FragmentOAuth extends FragmentBase {
.setState(provider.id)
.setAdditionalParameters(params);
if ("gmail".equals(provider.id) && BuildConfig.DEBUG)
// For offline access
if ("gmail".equals(provider.id))
authRequestBuilder.setPrompt("consent");
AuthorizationRequest authRequest = authRequestBuilder.build();