I'm working on an iOS only application and use Realm as the Database. I played around and set up a mongo db instance and the sync works and everything is fine except the password reset functionality. I have two options (as can be read here) to reset the password:
I don't want to use 1. as it would need another service to send any kind of token to confirm the user is actually connected to the account. For 2. I need my own server to either implement the password reset there or store a certificate which would redirect the user to the application. Well, I don't have a server.
For clarification: You need to send the reset-password email with a reset-password url which has no default value:
Question: What other options do I have? Why isn't there a base URL provided by mongoDB to reset the users password like Firebase is doing it? Has anybody run into that problem and how did you solve it?
Unfortunately there isn’t any default behaviour provided by MongoDB which is very unfortunate. The solutions I have found are:
A) uses third party authentication provider (like Google Firebase), create the accounts there and use the JWT Token to log in users to MongoDB.
B) omit the email verification and only stick to login providers like Google, apple or meta.