Hi, i am using the
realm-web sdk to login or register my users. At the moment, i am using to forms: one for login and one for register new users. I want to merge the forms into one. If the user exists, he will be logged in, otherwise a user will be created automatically and a confirmation email will be sent.
But that doesn’t seem to be possible via the email/password provider, does it? If i want to register a new user, i need to run
app.emailPasswordAuth.registerUser(email, password) If i want to register a user, i need to run
How can I unite this? Can I check already after entering the email address if a user with this address already exists or would I have to create an extra function that is then executed by the system user? (Personally I would find this a bit cumbersome)