Fix SECRET value in OAuth full examples

This commit is contained in:
François Voron
2022-09-08 08:31:53 +02:00
parent 3e44abdbef
commit 564eb642c8
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@ from fastapi import Depends, FastAPI
from app.db import User, db
from app.schemas import UserCreate, UserRead, UserUpdate
from app.users import (
SECRET,
auth_backend,
current_active_user,
fastapi_users,
@ -36,7 +37,7 @@ app.include_router(
tags=["users"],
)
app.include_router(
fastapi_users.get_oauth_router(google_oauth_client, auth_backend, "SECRET"),
fastapi_users.get_oauth_router(google_oauth_client, auth_backend, SECRET),
prefix="/auth/google",
tags=["auth"],
)

View File

@ -3,6 +3,7 @@ from fastapi import Depends, FastAPI
from app.db import User, create_db_and_tables
from app.schemas import UserCreate, UserRead, UserUpdate
from app.users import (
SECRET,
auth_backend,
current_active_user,
fastapi_users,
@ -35,7 +36,7 @@ app.include_router(
tags=["users"],
)
app.include_router(
fastapi_users.get_oauth_router(google_oauth_client, auth_backend, "SECRET"),
fastapi_users.get_oauth_router(google_oauth_client, auth_backend, SECRET),
prefix="/auth/google",
tags=["auth"],
)