File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
html/supertokens_python/framework/fastapi Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,14 @@ <h1 class="title">Module <code>supertokens_python.framework.fastapi.fastapi_midd
46
46
from supertokens_python.framework import BaseResponse
47
47
48
48
if TYPE_CHECKING:
49
- from fastapi import FastAPI, Request
49
+ from fastapi import Request
50
50
51
51
52
52
def get_middleware():
53
53
from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
54
54
from supertokens_python.utils import default_user_context
55
55
56
56
class Middleware(BaseHTTPMiddleware):
57
- def __init__(self, app: FastAPI):
58
- super().__init__(app)
59
-
60
57
async def dispatch(self, request: Request, call_next: RequestResponseEndpoint):
61
58
from supertokens_python import Supertokens
62
59
from supertokens_python.exceptions import SuperTokensError
@@ -126,9 +123,6 @@ <h2 class="section-title" id="header-functions">Functions</h2>
126
123
from supertokens_python.utils import default_user_context
127
124
128
125
class Middleware(BaseHTTPMiddleware):
129
- def __init__(self, app: FastAPI):
130
- super().__init__(app)
131
-
132
126
async def dispatch(self, request: Request, call_next: RequestResponseEndpoint):
133
127
from supertokens_python import Supertokens
134
128
from supertokens_python.exceptions import SuperTokensError
You can’t perform that action at this time.
0 commit comments