Skip to content

Commit

Permalink
Fix samesite and path cookie attributes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Feb 12, 2024
1 parent 679ed87 commit 67e5992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldap_jwt_auth/routers/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def login(
max_age=config.authentication.refresh_token_validity_days * 24 * 60 * 60,
secure=True,
httponly=True,
samesite="Lax",
path="/refresh",
samesite="lax",
path=f"{config.api.root_path}/refresh",
)
return response
except (InvalidCredentialsError, UserNotActiveError) as exc:
Expand Down

0 comments on commit 67e5992

Please sign in to comment.