Fix #630: relative tokenUrl (#636)

* 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:
François Voron
2021-05-20 08:52:03 +02:00
committed by GitHub
parent a690e82408
commit 455f695f52
10 changed files with 33 additions and 33 deletions

View File

@ -67,7 +67,7 @@ def after_verification_request(user: UserDB, token: str, request: Request):
jwt_authentication = JWTAuthentication(
secret=SECRET, lifetime_seconds=3600, tokenUrl="/auth/jwt/login"
secret=SECRET, lifetime_seconds=3600, tokenUrl="auth/jwt/login"
)
fastapi_users = FastAPIUsers(