cognee/cognee/modules/users/authentication/default/default_transport.py
2025-06-02 16:58:03 +02:00

10 lines
248 B
Python

import os
from fastapi_users.authentication import CookieTransport
default_transport = CookieTransport(
cookie_name=os.getenv("AUTH_TOKEN_COOKIE_NAME"),
cookie_httponly=True,
cookie_samesite="Lax",
)
default_transport.name = "cookie"