diff options
author | 2021-03-06 22:42:52 +0300 | |
---|---|---|
committer | 2021-03-06 22:42:52 +0300 | |
commit | 02154294da8b25bf7dae1b79f170aab888f92797 (patch) | |
tree | 82172d5742bbea923d88c643d5fc4c0f5f7deba0 /backend/authentication/backend.py | |
parent | Make Admin Fetch Async (diff) |
Renames Token To `token`
Changes the name for the token used to authorize with the backend.
Co-authored-by: Joe Banks <[email protected]>
Diffstat (limited to 'backend/authentication/backend.py')
-rw-r--r-- | backend/authentication/backend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/authentication/backend.py b/backend/authentication/backend.py index 206d1eb..c7590e9 100644 --- a/backend/authentication/backend.py +++ b/backend/authentication/backend.py @@ -33,7 +33,7 @@ class JWTAuthenticationBackend(authentication.AuthenticationBackend): self, request: Request ) -> t.Optional[tuple[authentication.AuthCredentials, authentication.BaseUser]]: """Handles JWT authentication process.""" - cookie = request.cookies.get("BackendToken") + cookie = request.cookies.get("token") if not cookie: return None |