Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add methods to retrieve user details via access token
Two new methods have been introduced in the views.py file of the drf-social-oauth2 module. The 'get_user' method retrieves the user associated with an access token. The 'prepare_response' method, on the other hand, adds user detailed info such as email, first name, and last name into the response data. The returned response from the 'post' method has been updated to utilize these changes.
- Loading branch information