Hi Intercom team, we receive several errors after trying to login a user with attributes using react-native sdk.
We check if the user is logged in before making a Intercom.loginUserWithUserAttributes call.
A short stack-trace for the error we receive:
code: 102,
domain: io.intercom.ios.error.network,
message: Error in loginUserWithUserAttributes,
name: Error,
NSLocalizedDescription: HTTP Error: 400 bad request
We send email and userId to the method call, like this:
Intercom.loginUserWithUserAttributes({ email, userId })
Could you help us understand why we still get an error, I’ve run a console.log for both email and userId and both seem legit.