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 9436926 commit 93a32bdCopy full SHA for 93a32bd
app/services/auth.py
@@ -23,7 +23,7 @@ def __init__(self, auto_error: bool = True):
23
super().__init__(auto_error=auto_error)
24
25
async def __call__(self, request: Request):
26
- credentials: HTTPAuthorizationCredentials = await super(AuthBearer, self).__call__(request)
+ credentials: HTTPAuthorizationCredentials = await super().__call__(request)
27
if credentials:
28
if not credentials.scheme == "Bearer":
29
raise HTTPException(status_code=403, detail="Invalid authentication scheme.")
0 commit comments