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]
|
[0.0.3]
|
||||||
- httpx -> aiohttp
|
- httpx -> aiohttp
|
||||||
- sentry integrations added
|
- sentry integrations added
|
||||||
|
|
|
@ -51,8 +51,7 @@ async def check_auth(req) -> str | None:
|
||||||
# Handling and logging exceptions during authentication check
|
# Handling and logging exceptions during authentication check
|
||||||
print(f"[services.auth] {e}")
|
print(f"[services.auth] {e}")
|
||||||
|
|
||||||
if not user_id:
|
return None
|
||||||
raise HTTPException(status_code=401, detail="Unathorized")
|
|
||||||
|
|
||||||
|
|
||||||
class LoginRequiredMiddleware(Extension):
|
class LoginRequiredMiddleware(Extension):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user