Gregniuki commited on
Commit
9df4f29
1 Parent(s): f2c4246

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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
- SECRET_KEY = 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_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