This commit is contained in:
parent
3b7b47599c
commit
954c3740cd
|
@ -6,6 +6,7 @@ from settings import AUTH_URL
|
||||||
|
|
||||||
async def check_auth(req):
|
async def check_auth(req):
|
||||||
token = req.headers.get("Authorization")
|
token = req.headers.get("Authorization")
|
||||||
|
if token:
|
||||||
print(f"[services.auth] checking auth token: {token}")
|
print(f"[services.auth] checking auth token: {token}")
|
||||||
|
|
||||||
headers = {"Authorization": "Bearer " + token, "Content-Type": "application/json"}
|
headers = {"Authorization": "Bearer " + token, "Content-Type": "application/json"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user