Search code examples
django-rest-frameworkdjango-rest-authdjoser

django-rest-auth vs djoser, Which one to use for Social Authentication?


I am unable to understand which one is better to use between django-rest-auth and djoser.

Previously I was using django-rest-auth but it is now unmaintained. I wanted to use jwt support for authentication. I also wanted to perform Social Authentication through Facebook. But django-rest-auth uses djangorestframework-jwt, which is again unmaintained and it also did not have any support for refresh tokens.

While wandering around on internet I found out another library 'Djoser', which also does the same thing, has better jwt support(django-rest-framework-simplejwt), but lacks the support of allauth for social authentication. It does provides social authentication through the use of python-social-auth (again depricated), but it's in the beta phase.

Please suggest me Which library to use, considering I want to use both jwt and social authentication.


Solution

  • Check out dj-rest-auth, is the mantained fork of django-rest-auth. It has jwt support as well as social authentication.