Update main.py
Browse files
main.py
CHANGED
@@ -24,9 +24,9 @@ from fastapi.staticfiles import StaticFiles
|
|
24 |
from authlib.integrations.starlette_client import OAuth
|
25 |
|
26 |
app = FastAPI()
|
27 |
-
app.add_middleware(SessionMiddleware, secret_key=SECRET_KEY1)
|
28 |
-
oauth = OAuth()
|
29 |
|
|
|
|
|
30 |
# Configure OAuth registry
|
31 |
oauth.register(
|
32 |
name='google',
|
|
|
24 |
from authlib.integrations.starlette_client import OAuth
|
25 |
|
26 |
app = FastAPI()
|
|
|
|
|
27 |
|
28 |
+
oauth = OAuth(app)
|
29 |
+
app.add_middleware(SessionMiddleware, secret_key=SECRET_KEY1)
|
30 |
# Configure OAuth registry
|
31 |
oauth.register(
|
32 |
name='google',
|