Django Social Auth Integration With Django Rest Framework

A 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. […]