10 lines
248 B
Python
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"
|