Skip to content

Commit

Permalink
Merge pull request #1303 from pztrick/feature/google-refresh-token
Browse files Browse the repository at this point in the history
Adds prompt=consent for Google provider per (newer) docs for refresh token
  • Loading branch information
pennersr committed Feb 20, 2016
2 parents 6fdade4 + f62fa0a commit 4971443
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion allauth/socialaccount/providers/google/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def get_auth_params(self, request, action):
ret = super(GoogleProvider, self).get_auth_params(request,
action)
if action == AuthAction.REAUTHENTICATE:
ret['approval_prompt'] = 'force'
ret['prompt'] = 'consent'
ret['access_type'] = 'offline'
return ret

def extract_uid(self, data):
Expand Down

0 comments on commit 4971443

Please sign in to comment.