feat: Add more error logging
All checks were successful
Build Docker / Build Docker (push) Successful in 31s

This commit is contained in:
Nathan Woodburn 2024-06-20 12:28:50 +10:00
parent a7c6c34f1c
commit c45c34adb1
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -447,7 +447,11 @@ def authorize():
try:
grant = authorization.get_consent_grant(end_user=user)
except OAuth2Error as error:
return error.error
return jsonify({
"error": error.error,
"description": error.description,
"uri": error.uri,
})
return render_template("authorize.html", user=user, grant=grant)
grant_user = user