mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-11-01 18:48:14 +08:00
* Fix #630: use relative tokenUrl as per the official recommendations * Improve following review comments * Fix unmatching backtick * Improve consistency of authentication backend documentation
This commit is contained in:
@ -30,7 +30,7 @@ class JWTAuthentication(BaseAuthentication[str]):
|
||||
self,
|
||||
secret: str,
|
||||
lifetime_seconds: int,
|
||||
tokenUrl: str = "/login",
|
||||
tokenUrl: str = "auth/jwt/login",
|
||||
name: str = "jwt",
|
||||
):
|
||||
super().__init__(name, logout=False)
|
||||
|
||||
Reference in New Issue
Block a user