diff --git a/flask_social/providers/google.py b/flask_social/providers/google.py index 1d13321..a563ba3 100644 --- a/flask_social/providers/google.py +++ b/flask_social/providers/google.py @@ -25,7 +25,11 @@ 'access_token_url': 'https://accounts.google.com/o/oauth2/token', 'request_token_url': None, 'access_token_method': 'POST', + 'access_token_params': { + 'grant_type': 'authorization_code' + }, 'request_token_params': { + 'response_type': 'code', 'scope': 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.me' #add ' https://www.googleapis.com/auth/userinfo.email' to scope to also get email }