mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-14 18:58:10 +08:00
Allow lifetime_seconds to be None to get session cookies
This commit is contained in:
@ -19,7 +19,7 @@ def generate_state_token(
|
||||
data: Dict[str, str], secret: str, lifetime_seconds: int = 3600
|
||||
) -> str:
|
||||
data["aud"] = STATE_TOKEN_AUDIENCE
|
||||
return generate_jwt(data, lifetime_seconds, secret, JWT_ALGORITHM)
|
||||
return generate_jwt(data, secret, lifetime_seconds, JWT_ALGORITHM)
|
||||
|
||||
|
||||
def decode_state_token(token: str, secret: str) -> Dict[str, str]:
|
||||
|
Reference in New Issue
Block a user