Register User in Web via Endpoint

Hi,
Im currently writing a Blazor Web Assembly Application, that is connected to a Realm App. I wanna give users the possibilty to register and login on the mobile and the web app.
For logging in i can use an endpoint like:
https://eu-central-1.aws.realm.mongodb.com/api/client/v2.0/app/myapp-xxxx/auth/providers/local-userpass/login in the web app.
As far as i have read the documentation there is nothing similar for the registration process. So do i have to use the web sdk of realm for that?
It would be very useful if there would be something similar like the login endpoint cause i dont like mixing Blazor with javascript if it is not really necesarry.
Thanks for any help in advance :slight_smile:

You can hit the register endpoint to register the user - it should be something like https://eu-central-1.aws.realm.mongodb.com/api/client/v2.0/app/myapp-xxxx/auth/providers/local-userpass/register. You can view the various routes in the web SDK source code. As for the payload, it looks like it’s { "email": "my-email", "password": "some-password" }.

2 Likes

Thank you very much @nirinchev :smiley:
That is exactly what i have been looking for :+1:
I think it could be useful to add stuff like that to the Documentation directly. :slight_smile:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.