aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/auth
diff options
context:
space:
mode:
Diffstat (limited to 'backend/routes/auth')
-rw-r--r--backend/routes/auth/authorize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/routes/auth/authorize.py b/backend/routes/auth/authorize.py
index 65709ab..98f9887 100644
--- a/backend/routes/auth/authorize.py
+++ b/backend/routes/auth/authorize.py
@@ -41,7 +41,7 @@ async def process_token(bearer_token: dict) -> Union[AuthorizeResponse, AUTH_FAI
try:
user_details = await fetch_user_details(bearer_token["access_token"])
except httpx.HTTPStatusError:
- AUTH_FAILURE.delete_cookie("BackendToken")
+ AUTH_FAILURE.delete_cookie("token")
return AUTH_FAILURE
max_age = datetime.timedelta(seconds=int(bearer_token["expires_in"]))
@@ -63,7 +63,7 @@ async def process_token(bearer_token: dict) -> Union[AuthorizeResponse, AUTH_FAI
})
response.set_cookie(
- "BackendToken", f"JWT {token}",
+ "token", f"JWT {token}",
secure=constants.PRODUCTION, httponly=True, samesite="strict",
max_age=bearer_token["expires_in"]
)