Automated deployment: Wed Dec 4 12:34:42 UTC 2019 49deb437a6ec71dc2cb88034f895dfff4b147fac

This commit is contained in:
frankie567
2019-12-04 12:34:42 +00:00
parent d39618a999
commit 5741dd78e3
19 changed files with 1000 additions and 64 deletions

View File

@ -33,10 +33,12 @@ class User(BaseUser):
pass
auth = JWTAuthentication(secret=SECRET, lifetime_seconds=3600)
auth_backends = [
JWTAuthentication(secret=SECRET, lifetime_seconds=3600),
]
app = FastAPI()
fastapi_users = FastAPIUsers(user_db, auth, User, SECRET)
fastapi_users = FastAPIUsers(user_db, auth_backends, User, SECRET)
app.include_router(fastapi_users.router, prefix="/users", tags=["users"])