aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/auth/authorize.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-03-06 23:32:21 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-03-06 23:32:21 +0300
commitb2ad14a87ab715eb403be68722914ed1c6b51d91 (patch)
tree2e409cac18da2f976b5593065a185cec01e90c85 /backend/routes/auth/authorize.py
parentSets Token Cookie To Same Site To Lax (diff)
Revert "Sets Token Cookie To Same Site To Lax"
This reverts commit 013ea900 Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend/routes/auth/authorize.py')
-rw-r--r--backend/routes/auth/authorize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/routes/auth/authorize.py b/backend/routes/auth/authorize.py
index e00aef2..26d8622 100644
--- a/backend/routes/auth/authorize.py
+++ b/backend/routes/auth/authorize.py
@@ -63,7 +63,7 @@ async def process_token(bearer_token: dict) -> Union[AuthorizeResponse, AUTH_FAI
response.set_cookie(
"token", f"JWT {token}",
- secure=constants.PRODUCTION, httponly=True, samesite="lax",
+ secure=constants.PRODUCTION, httponly=True, samesite="strict",
max_age=bearer_token["expires_in"]
)
return response