mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-10-28 03:26:13 +08:00
Drop Python 3.8 support
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from typing import Generic, List, Optional
|
||||
from typing import Generic, Optional
|
||||
|
||||
import jwt
|
||||
|
||||
@ -22,7 +22,7 @@ class JWTStrategy(Strategy[models.UP, models.ID], Generic[models.UP, models.ID])
|
||||
self,
|
||||
secret: SecretType,
|
||||
lifetime_seconds: Optional[int],
|
||||
token_audience: List[str] = ["fastapi-users:auth"],
|
||||
token_audience: list[str] = ["fastapi-users:auth"],
|
||||
algorithm: str = "HS256",
|
||||
public_key: Optional[SecretType] = None,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user