Django Social Auth Integration With Django Rest Framework

Few days back I have to write an API to register a user using Facebook and Google social auth. The task was simple I will get facebook or google access_token in request and then I will use that to get User information from facebook and store it in Database and also create auth_token using django-rest-framework and return it in response so client side can use this token for subsequent calls. The application was using django-social-auth for its web version already to give users the ability to register using Facebook and Google. The application was also using django-rest-framework version 2.4 for writing REST APIs. […]