I'm developing a web app with github API. I want to get the token of the user I have authenticated with Python Social Auth, but I get the following error UserSocialAuth matching query does not exist
when I'm trying to access the token of the user.
I really don't know what to do to access this extra data.
Here's my code when I'm trying to access the token :
if request.user.is_authenticated:
gituser = request.user.social_auth.get(provider ='github-oauth2')
extra_data = str(gituser.extra_data['access_token'])
Thanks by advance !