backend: log oauth payload on invalid_token error

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-04-07 18:42:18 +02:00
parent dd44f65aa4
commit e0f1d4c514
1 changed files with 1 additions and 0 deletions

View File

@ -264,6 +264,7 @@ def login_return(code: str, state: str, session_state: str = "") -> Optional[Res
) )
else: else:
current_app.logger.error(f"id_token not found in payload from provider: {auth_token_object}")
raise ApiError( raise ApiError(
error_code="invalid_token", error_code="invalid_token",
message="Login failed. Please try again", message="Login failed. Please try again",