Email/Password Auth

How can I get the userId of a newly registered user that is not yet confirm.

@Aaron_Parducho: Yes, have tried getting current user from realm instance post successful sign-up.

Something like this :

 realmSync.emailPassword.registerUserAsync(username, password) {
            // re-enable the buttons after user registration returns a result
            if (it.isSuccess) {
            } else {
                Log.i("LoginViewModel", "Successfully registered user.")
                // when the account has been created successfully, log in to the account