diff --git a/services/auth.py b/services/auth.py index 5ec5f20c..7b8c297d 100644 --- a/services/auth.py +++ b/services/auth.py @@ -6,7 +6,7 @@ from resolvers import get_author_id from settings import AUTH_URL -async def check_auth(req) -> (bool, int| None): +async def check_auth(req) -> (bool, int | None): token = req.headers.get("Authorization") if token: # Logging the authentication token