Four different approaches on how to authenticate Single-Page Applications (SPAs) with session-based authentication using Django.
https://testdriven.io/blog/django-spa-auth/