Following instructions about Google refresh_token, I have this in my django app settings.py:
SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = ['https://www.googleapis.com/auth/calendar']
SOCIAL_AUTH_GOOGLE_OAUTH2_EXTRA_ARGUMENTS = {'access_type': 'offline'}
SOCIAL_AUTH_GOOGLE_PLUS_AUTH_EXTRA_ARGUMENTS = {'access_type': 'offline'}
But I'm not getting a refresh_token in the User social auth table, only token_type, access_token, expires. Any tip ?
I'm not using Google+, but just put the extra line to follow your documentation.
Following instructions about Google refresh_token, I have this in my django app settings.py:
SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = ['https://www.googleapis.com/auth/calendar']
SOCIAL_AUTH_GOOGLE_OAUTH2_EXTRA_ARGUMENTS = {'access_type': 'offline'}
SOCIAL_AUTH_GOOGLE_PLUS_AUTH_EXTRA_ARGUMENTS = {'access_type': 'offline'}
But I'm not getting a refresh_token in the User social auth table, only token_type, access_token, expires. Any tip ?
I'm not using Google+, but just put the extra line to follow your documentation.