This commit is contained in:
@@ -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"}
|
||||||
|
|||||||
Reference in New Issue
Block a user