From dc86fe451fd81f0108994bfee556eee60c8d0eed Mon Sep 17 00:00:00 2001 From: Hamed Zaghaghi Date: Thu, 21 Jan 2021 13:14:08 +0330 Subject: [PATCH] Fix handle_authorize call on failed situations --- loginpass/_fastapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loginpass/_fastapi.py b/loginpass/_fastapi.py index ef05920..48950d0 100644 --- a/loginpass/_fastapi.py +++ b/loginpass/_fastapi.py @@ -63,7 +63,7 @@ async def auth( token = await remote.authorize_access_token(request) else: # handle failed - return await handle_authorize(remote, None, None) + return await handle_authorize(remote, None, None, request) if "id_token" in token: user_info = await remote.parse_id_token(request, token) else: