ff0000/red-social-auth — Issue #3: Google no longer sending refresh_token?
Author: kimjongillmatic
Created: 2011-12-09 21:10:38+00:00
State: open

I'm getting 500 errors trying to authenticate from Google+ and when I look into the code, I see we're getting a KeyError in oauth2.py at:

if response.status == 200:
value = json.loads(data)
access_token = value['access_token']
--> refresh_token = value['refresh_token']

When I inspect 'value', there's no 'refresh_token' in the response, or in the 'data' that generates 'value'.