I have a Javascript application using Mongo Realm. The realm-web function to initiate the reset password flow called in an Angular service looks like:
forgotP