This commit is contained in:
@@ -51,8 +51,7 @@ 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="Unathorized")
|
||||
return None
|
||||
|
||||
|
||||
class LoginRequiredMiddleware(Extension):
|
||||
|
Reference in New Issue
Block a user