Solution:
Yes, there are several ways of doing this. But I have done this using JWT. Access tokens are used to validate users at the backend. The access tokens and refresh tokens are generated by the django package(SimpleJWT). And at the frontend I have used Vuejs with Vuex to handle login,logout,etc.
You can look at my github repository here: https://github.com/nishant-boro/django_rest-vuejs-auth
This might be the exact thing you are looking for.