Learning about third-party token-based authentication packages
In this section, we will get a high-level overview of different packages available that can be plugged into Django and DRF to solve the challenges of DRF token-based authentication. We will not deep dive into the implementation and integration of the following package; rather, we will enable developers to know about the available open source packages out there that can be easily used by them to solve problems.
django-rest-knox
The django-rest-knox
package provides multi-device login and session management support. It has a similar architecture to DRF token-based authentication, but it solves a couple of issues, such as saving tokens in an encrypted format and also providing expiry time for issued tokens.
Read more
For more details, check the official documentation at https://jazzband.github.io/django-rest-knox/.
djangorestframework-simplejwt
JSON Web Token (JWT) is a modern-age token-based authentication...