How to change a User ID in JS


#1

I see in the docs on the site that it is possible to change a user’s USER ID from the default UUID to something that I want. What I don’t see is how to do this? I’m looking to do this in javascript.


#2

@JBul The provider id is established by what you use to call logIn() with. If you are talking about the realm UserId you can override that with your own customer auth here
https://realm.io/docs/realm-object-server/latest/api/ros/classes/authservice.html#createorupdateuser