In this post, we will add token-based authentication with Django Rest Framework and Djoser. The Django Rest Framework is a package for faster building REST API with Django. The Djoser provides basic views to handle authentication actions such as create user, login, logout.