Skip to content

Commit 9340544

Browse files
fix path for refresh token
1 parent 3a6d2e1 commit 9340544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/core/security.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def set_refresh_cookie(response: Response, token: str) -> None:
180180
secure = settings.ENVIRONMENT.value != "development",
181181
samesite = "strict",
182182
max_age = settings.REFRESH_TOKEN_EXPIRE_DAYS * 24 * 60 * 60,
183-
path = f"{API_PREFIX}/auth",
183+
path = "/",
184184
)
185185

186186

@@ -190,5 +190,5 @@ def clear_refresh_cookie(response: Response) -> None:
190190
"""
191191
response.delete_cookie(
192192
key = "refresh_token",
193-
path = f"{API_PREFIX}/auth"
193+
path = "/"
194194
)

0 commit comments

Comments
 (0)