I’m attempting to setup authentication. As reference, I’m mostly looking to https://docs.mongodb.com/realm/tutorial/android-kotlin/#enable-authentication
I’m running into some trouble with that tutorial.
First off, it seems that .emailPassword has been deprecated in favor of .emailPasswordAuth
So, I switch to something like this…
But I’m getting a ‘Name already in use’ error. The error is also showing up in my realm.mongoDB logs
I’ve set up registration successfully with realm synch on Android before. I seem to remember that the registerUser functions were not working correctly, and that I ultimately had to switch to set up a token system and switch to JWT authentication in order to get registration working.
Is that android-kotlin tutorial still valid? What’s the most efficient way to get authentication working with android-kotlin?