From 25b6a6f50a5ab13f2940261010d2f8fb175997eb Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 18 Dec 2023 10:47:50 +0300 Subject: [PATCH] tolerate-auth-for-schema-inspect --- services/auth.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/services/auth.py b/services/auth.py index 6618f56..2e5c100 100644 --- a/services/auth.py +++ b/services/auth.py @@ -47,9 +47,6 @@ async def check_auth(req) -> str | None: # Handling and logging exceptions during authentication check print(f"[services.auth] {e}") - if not user_id: - raise HTTPException(status_code=401,detail="Unauthorized") - class LoginRequiredMiddleware(Extension): async def on_request_start(self):