diff --git a/plugins/auth/google/auth.go b/plugins/auth/google/auth.go index fe3ba3f..477548b 100644 --- a/plugins/auth/google/auth.go +++ b/plugins/auth/google/auth.go @@ -162,7 +162,7 @@ func (a *AuthGoogleOAuth) Login(res http.ResponseWriter, r *http.Request) (user // method. If no login using this method is possible the function // needs to return nil. func (a *AuthGoogleOAuth) LoginFields() (fields []plugins.LoginField) { - loginURL := a.getOAuthConfig().AuthCodeURL(a.AuthenticatorID()) + loginURL := a.getOAuthConfig().AuthCodeURL(a.AuthenticatorID(), oauth2.AccessTypeOffline) return []plugins.LoginField{ {