Tag: django


JWT token as HttpOnly cookie in Django

It is always recommended to store tokens for authentication as HttpOnly cookie instead of storing them in localStorage as a normal cookie which will not be accessible by JavaScript from the fronten...

HttpOnly cookie in Django

For authentication in a Single page application, it is a common approach to use token-based authentication where a token is sent to the backend for protected routes. Instead of storing the token in...

Custom User Model in Django

In this tutorial, we will be learning how to create a custom user model or extending user model to add some fields and to grab more control over user model.