Use the Django auth system with a Single Page App (SPA)


Django tip:

Coupling Django with a front-end framework like React, Vue, or Angular? Use session cookies for auth (even cross-domain).

Why?

  1. It's easier since Django has a powerful built-in auth system
  2. It's safer than using JWTs and localStorage

https://testdriven.io/blog/django-spa-auth/