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
1 changed files with 2 additions and 1 deletions

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();