Home > Software design >  Reset password on Realm without having a server
Reset password on Realm without having a server

Time:01-10

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 MongoDB options for the send mail 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?

CodePudding user response:

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.

  • Related