Skip to content

Can't get a Google OAuth2 refresh_token #607

@avibrazil

Description

@avibrazil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions