Closed adrenaline681 closed 7 months ago
Thanks for your contribution @adrenaline681
I see that JWT_AUTH_COOKIE_DOMAIN is merged into master. But I can't see it in https://dj-rest-auth.readthedocs.io/en/latest/configuration.html#. Is readthedocs updated?
Users using SPA commonly set their backend in a separate subdomain like for example api.example.com. When the JWT auth token cookie is set, it will only be set on that domain (api.example.com).
With this update users can have the option to change the domain where the auth cookies are set thus allowing the cookies to be set for all subdomains. It also fixes issues when Server Side Rendering pages in frameworks like NextJs where the SSR part of the application has no access to the auth cookies thus can't forward them to the Django backend.
Fixes issue #238
Thanks for your time.
PS: It's my first contribution on GitHub :)