fix documentation tokenUrl (#210)

* fix documentation tokenUrl

* Change default login tokenUrl
This commit is contained in:
Eric Lopes
2020-06-15 20:33:52 +08:00
committed by GitHub
parent 624172ccf9
commit 75147a7071
8 changed files with 8 additions and 8 deletions

View File

@ -54,7 +54,7 @@ def on_after_forgot_password(user: UserDB, token: str, request: Request):
print(f"User {user.id} has forgot their password. Reset token: {token}")
jwt_authentication = JWTAuthentication(secret=SECRET, lifetime_seconds=3600)
jwt_authentication = JWTAuthentication(secret=SECRET, lifetime_seconds=3600, tokenUrl='/auth/jwt/login')
fastapi_users = FastAPIUsers(
user_db, [jwt_authentication], User, UserCreate, UserUpdate, UserDB,