I am using the React Native SDK and I would like to know the userId of the currently logged in user.
Use-case: after updating to the latest SDK, loginUserWithUserAttributes throws an exception when the user is already logged in.
But I have no way to know if the user is already logged into Intercom (after an app restart for example), and if logged it, if it is logged in using the correct user.
I could store this in my app, but this makes the code much more complex.
The best solution would be to have an Intercom method to return the currently logged user, if any.