This commit is contained in:
parent
f51d7539eb
commit
510402032d
|
@ -6,7 +6,7 @@ from resolvers import get_author_id
|
||||||
from settings import AUTH_URL
|
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")
|
token = req.headers.get("Authorization")
|
||||||
if token:
|
if token:
|
||||||
# Logging the authentication token
|
# Logging the authentication token
|
||||||
|
|
Loading…
Reference in New Issue
Block a user