title: resetPassword function isn't working in Mongodb
body: <p>I am using sendResetPasswordEmail in the Ionic React app to reset the user password, we have got the new password in the database and we try to use resetPassword in Realm &gt; Build &gt; Functions resetPassword function, I know I need to use: <code>await app.emailPasswordAuth.resetPassword(token, tokenId, password)</code>, however, I just can't get the app working: <code>let app = new Realm.App(appConfig); const Realm = require(&quot;realm&quot;);</code> It's either undefine app or realm modules.</p>
  <p><a href="https://i.stack.imgur.com/PofOY.png" rel="nofollow noreferrer">here is part of the code in the functions and the errors that show up</a></p>