Gregniuki commited on
Commit
eec8df9
·
1 Parent(s): 8e04748

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -17,10 +17,12 @@ import os
17
  import authlib
18
 
19
  my_secret_key = os.environ['my_secret_key']
 
20
  from fastapi.staticfiles import StaticFiles
21
  from authlib.integrations.starlette_client import OAuth
22
 
23
  app = FastAPI()
 
24
  oauth = OAuth()
25
 
26
  # Configure OAuth registry
 
17
  import authlib
18
 
19
  my_secret_key = os.environ['my_secret_key']
20
+ SECRET_KEY = os.environ['SecretKey']
21
  from fastapi.staticfiles import StaticFiles
22
  from authlib.integrations.starlette_client import OAuth
23
 
24
  app = FastAPI()
25
+ app.add_middleware(SessionMiddleware, secret_key=SECRET_KEY)
26
  oauth = OAuth()
27
 
28
  # Configure OAuth registry