Skip to main content
Answered

Improve error responses for login methods in React Native SDK

  • 3 October 2024
  • 1 reply
  • 79 views

Hi there! I’d been debugging an issue with our React Native app’s implementation of the `loginUnidentifiedUser` + `loginUserWithUserAttributes` combo, and noticed that while the Android module has a few descriptive cases before being generically handled by `IntercomError.getErrorMessage()`, the iOS module simply throws a blanket error for all failures.

Is there a reason why actual request errors aren’t being bubbled up through these methods? For example, if the login failed due to the Identity Verification check, I feel like it would be reasonable to include that and the related code in the failure callback.

Best answer by Ebenezer.Laleye

Hi @amelagrano ! Ebenezer here from Engineering Support👋.

Thanks for bringing this to our attention!

I can definitely see how adding more descriptive error can be useful 

I’ll bring this up with the Mobile Team and see what can be done regarding these error!

 

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+4

Hi @amelagrano ! Ebenezer here from Engineering Support👋.

Thanks for bringing this to our attention!

I can definitely see how adding more descriptive error can be useful 

I’ll bring this up with the Mobile Team and see what can be done regarding these error!

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings