There was an error while loading. Please reload this page.
1 parent 4b57907 commit 924eafcCopy full SHA for 924eafc
1 file changed
api-server/app/main.py
@@ -7,6 +7,7 @@
7
from contextlib import asynccontextmanager
8
from dotenv import load_dotenv
9
from motor.motor_asyncio import AsyncIOMotorClient
10
+from fastapi.security import OAuth2PasswordBearer
11
12
# injecting singletons
13
from .singletons.logs_manager import LogsManager
@@ -50,6 +51,7 @@ async def lifespan(app: FastAPI):
50
51
52
app = FastAPI(lifespan=lifespan)
53
54
+oauth2_scheme = OAuth2PasswordBearer(tokenUrl="auth/token")
55
56
# this middleware should be the first one
57
app.add_middleware(GetTokenClaimsMiddleware)
0 commit comments