Where in database does python-social-auth store access token?

428 views Asked by At

I am using python-social-auth (within django) to implement facebook-login. I am able to successfully sign into my app using facebook and extract user email. But where in the database can I find the OAuth token generated by facebook? Is it in the password field in the user table?

1

There are 1 answers

0
Brandon Taylor On BEST ANSWER

It's in the UserSocialAuth extra_data field which is a JSONField.

Example of the value stored:

{"expires": "5184000", "id": "00000000000000000", "access_token": "the-token-value"}