diff --git a/app/services/auth.py b/app/services/auth.py index 2a2ad87..9af470b 100644 --- a/app/services/auth.py +++ b/app/services/auth.py @@ -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.")