aboutsummaryrefslogtreecommitdiffstats
path: root/backend/authentication
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-03-06 22:42:52 +0300
committerGravatar GitHub <[email protected]>2021-03-06 22:42:52 +0300
commit02154294da8b25bf7dae1b79f170aab888f92797 (patch)
tree82172d5742bbea923d88c643d5fc4c0f5f7deba0 /backend/authentication
parentMake 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')
-rw-r--r--backend/authentication/backend.py2
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