Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resetPassword and callResetPasswordFunction are impossible to execute due to incorrect number of arguments #3120

Closed
johnsaigle opened this issue Aug 10, 2020 · 3 comments

Comments

@johnsaigle
Copy link

johnsaigle commented Aug 10, 2020

Goals

Calling emailPasswordAuth.resetPassword() to reset a user's password.

Expected Results

The password should be reset.

Actual Results

realmbad

I believe the error is in the following code from node_modules/realm/lib/email-password-auth-methods.js
you

The stack trace indicates that a parameter is missing and these two functions do not have cb in the argument list, unlike the other functions. Adding cb as the fourth argument to both functions fixed my issue.

Steps to Reproduce

Try to use the function.

Code Sample

realmbad2

Version of Realm and Tooling

  • Realm JS SDK Version: 10.0.0-beta.9
  • Node or React Native: Node
  • Client OS & Version: Ubuntu 18.04 LTS
@kneth
Copy link
Member

kneth commented Aug 11, 2020

I believe it has been fixed by #3079 but not yet released.

@johnsaigle
Copy link
Author

Any idea when the next release will be?

@kneth
Copy link
Member

kneth commented Aug 12, 2020

As a principle we never promise releases at specific dates but let's say next week 😄

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants