backend: log oauth payload on invalid_token error
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
dd44f65aa4
commit
e0f1d4c514
|
@ -264,6 +264,7 @@ def login_return(code: str, state: str, session_state: str = "") -> Optional[Res
|
|||
)
|
||||
|
||||
else:
|
||||
current_app.logger.error(f"id_token not found in payload from provider: {auth_token_object}")
|
||||
raise ApiError(
|
||||
error_code="invalid_token",
|
||||
message="Login failed. Please try again",
|
||||
|
|
Loading…
Reference in New Issue