Improve error responses for login methods in React Native SDK | Community
Skip to main content
Answered

Improve error responses for login methods in React Native SDK

  • October 3, 2024
  • 1 reply
  • 207 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!

 

1 reply

Forum|alt.badge.img+7

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!