print-request-auth
All checks were successful
deploy / deploy (push) Successful in 1m16s

This commit is contained in:
Untone 2023-12-18 01:47:44 +03:00
parent a402af4590
commit a11ee74fc3

View File

@ -74,6 +74,7 @@ def login_required(f):
info = args[1]
context = info.context
req = context.get("request")
print(req)
is_authenticated, user_id = await check_auth(req)
if not is_authenticated:
# Raising HTTPUnauthorized exception if the user is not authenticated