mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 19:30:47 +08:00
Allow lifetime_seconds=None (#835)
This commit is contained in:
@ -16,7 +16,7 @@ class JWTStrategy(Strategy, Generic[models.UC, models.UD]):
|
||||
def __init__(
|
||||
self,
|
||||
secret: SecretType,
|
||||
lifetime_seconds: int,
|
||||
lifetime_seconds: Optional[int],
|
||||
token_audience: List[str] = ["fastapi-users:auth"],
|
||||
):
|
||||
self.secret = secret
|
||||
|
Reference in New Issue
Block a user