fix: handle excessive otp confirmations (#11244)

pull/11279/head
Maxim Filonov 1 week ago committed by GitHub
parent 9b1e802829
commit f005976152
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      apps/explorer/lib/explorer/third_party_integrations/auth0.ex

@ -481,6 +481,16 @@ defmodule Explorer.ThirdPartyIntegrations.Auth0 do
}} ->
{:error, "Wrong verification code."}
{:error,
%OAuth2.Response{
status_code: 403,
body: %{
"error" => "invalid_grant",
"error_description" => "You've reached the maximum number of attempts. Please try to login again."
}
}} ->
{:error, "Max attempts reached. Please resend code."}
other ->
Logger.error("Error while confirming otp: #{inspect(other)}")

Loading…
Cancel
Save