kamalbanga
kamalbanga

Reputation: 2011

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

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?

Upvotes: 0

Views: 400

Answers (1)

Brandon Taylor
Brandon Taylor

Reputation: 34593

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"}

Upvotes: 2

Related Questions