Allow lifetime_seconds=None (#835)

This commit is contained in:
David Brochart
2022-01-03 12:05:55 +01:00
committed by GitHub
parent d469bace6e
commit 79557eead4
2 changed files with 2 additions and 2 deletions

View File

@ -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