mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 11:11:16 +08:00
Small tweaks
This commit is contained in:
@ -26,6 +26,7 @@ class CookieAuthentication(
|
||||
:param cookie_domain: Cookie domain.
|
||||
:param cookie_secure: Whether to only send the cookie to the server via SSL request.
|
||||
:param cookie_httponly: Whether to prevent access to the cookie via JavaScript.
|
||||
:param cookie_samesite: Set the SameSite policy of the cookie.
|
||||
:param name: Name of the backend. It will be used to name the login route.
|
||||
:param token_audience: List of valid audiences for the JWT.
|
||||
"""
|
||||
|
@ -31,7 +31,7 @@ class JWTAuthentication(
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
secret: str,
|
||||
secret: SecretType,
|
||||
lifetime_seconds: int,
|
||||
tokenUrl: str = "auth/jwt/login",
|
||||
name: str = "jwt",
|
||||
|
Reference in New Issue
Block a user