0

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?

kamalbanga
  • 1,881
  • 5
  • 27
  • 46

1 Answers1

2

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"}
Brandon Taylor
  • 33,823
  • 15
  • 104
  • 144