From 510402032d2f42c66cc86748d0d73d443c859cb9 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 13 Dec 2023 23:42:52 +0300 Subject: [PATCH] auth-connector-fix-3 --- services/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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