Update main.py
Browse files
main.py
CHANGED
@@ -18,12 +18,12 @@ import authlib
|
|
18 |
from starlette.middleware.sessions import SessionMiddleware
|
19 |
|
20 |
my_secret_key = os.environ['my_secret_key']
|
21 |
-
|
22 |
from fastapi.staticfiles import StaticFiles
|
23 |
from authlib.integrations.starlette_client import OAuth
|
24 |
|
25 |
app = FastAPI()
|
26 |
-
app.add_middleware(SessionMiddleware, secret_key=
|
27 |
oauth = OAuth()
|
28 |
|
29 |
# Configure OAuth registry
|
|
|
18 |
from starlette.middleware.sessions import SessionMiddleware
|
19 |
|
20 |
my_secret_key = os.environ['my_secret_key']
|
21 |
+
SECRET_KEY1 = os.environ['SecretKey']
|
22 |
from fastapi.staticfiles import StaticFiles
|
23 |
from authlib.integrations.starlette_client import OAuth
|
24 |
|
25 |
app = FastAPI()
|
26 |
+
app.add_middleware(SessionMiddleware, secret_key=SECRET_KEY1)
|
27 |
oauth = OAuth()
|
28 |
|
29 |
# Configure OAuth registry
|