We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c269911 commit 3fe9d30Copy full SHA for 3fe9d30
examples/demonstration/router.py
@@ -3,9 +3,10 @@
3
from fastapi import Depends
4
from fastapi import Request, APIRouter
5
from fastapi.responses import HTMLResponse
6
-from fastapi.security import OAuth2
7
from fastapi.templating import Jinja2Templates
8
+from fastapi_oauth2.security import OAuth2
9
+
10
oauth2 = OAuth2()
11
router = APIRouter()
12
templates = Jinja2Templates(directory="templates")
0 commit comments