Back

Web password recovery issue

  • 0
  • Web
deanvr
25 Mar, 2024, 09:59

The web updateRecovery function seems to accept four arguments based on the documentation given here, https://appwrite.io/docs/products/auth/email-password#password-recovery. But the web sdk accepts only three arguments i.e. userId, secret, and password. So while trying to reset password with updateRecovery function from the sdk with only three args, returns an error with message : "Param passwordAgain is not optional." and status code 400. The web sdk versio is 14.0.0

TL;DR
Developers are encountering an issue with web password recovery where the updateRecovery function in the web SDK only accepts three arguments instead of four as mentioned in the documentation. This results in an error requesting the password to be repeated. The current version of the web SDK in use is 14.0.0.
D5
25 Mar, 2024, 10:02

I think you need to repeat the password?

D5
25 Mar, 2024, 10:02
TypeScript
    '[USER_ID]',
    '[SECRET]',
    'password',
    'password'
);```
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more