This commit is contained in:
parent
0139819f27
commit
999fafac71
|
@ -1,3 +1,10 @@
|
|||
[0.1.0]
|
||||
- resolvers: schema refactored to model, seen, load
|
||||
- services: core queries fixed
|
||||
- services: auth middleware
|
||||
- services: redis pattern subscribe method
|
||||
- orm: timestamp default fix
|
||||
|
||||
[0.0.3]
|
||||
- httpx -> aiohttp
|
||||
- sentry integrations added
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user