mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
fix lint UP008
This commit is contained in:
parent
9436926729
commit
93a32bdd9c
@ -23,7 +23,7 @@ class AuthBearer(HTTPBearer):
|
||||
super().__init__(auto_error=auto_error)
|
||||
|
||||
async def __call__(self, request: Request):
|
||||
credentials: HTTPAuthorizationCredentials = await super(AuthBearer, self).__call__(request)
|
||||
credentials: HTTPAuthorizationCredentials = await super().__call__(request)
|
||||
if credentials:
|
||||
if not credentials.scheme == "Bearer":
|
||||
raise HTTPException(status_code=403, detail="Invalid authentication scheme.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user