Skip to content

Commit 8eedc01

Browse files
authored
fix: allow setting custom cookie name via env var (#1909)
Signed-off-by: San Nguyen <vinhsannguyen91@gmail.com>
1 parent 8dc9f00 commit 8eedc01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/chainlit/auth/cookie.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
_cookie_secure = _cookie_samesite == "none"
2626

2727
_state_cookie_lifetime = 3 * 60 # 3m
28-
_auth_cookie_name = "access_token"
28+
_auth_cookie_name = os.environ.get("CHAINLIT_AUTH_COOKIE_NAME", "access_token")
2929
_state_cookie_name = "oauth_state"
3030

3131

0 commit comments

Comments
 (0)