If I create an anonymous user on Realm Cloud in Swift like this:
let credentials = SyncCredentials.anonymous()
SyncUser.logIn(with: credentials, server: Constants.authURL) { user, error in
//...
}
A user is created with a random Provider ID like 21483490cead296c6bc09ee40254d366
instead of an email address.
When the user decides later on to sign up for an account, is there a way to just update the provider ID to their email address and keep the same identity
on their SyncUser
record?
If not, how do I migrate their account? Do I have to manually migrate all their data to their new user account?