diff options
author | 2021-03-06 23:32:21 +0300 | |
---|---|---|
committer | 2021-03-06 23:32:21 +0300 | |
commit | b2ad14a87ab715eb403be68722914ed1c6b51d91 (patch) | |
tree | 2e409cac18da2f976b5593065a185cec01e90c85 /backend/routes/auth/authorize.py | |
parent | Sets 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.py | 2 |
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 |