appwrite / sdk-for-node

[READ-ONLY] Official Appwrite Node.js SDK 🟒

Home Page:https://appwrite.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ› Bug Report: Password recovery fails with `Param "passwordAgain" is not optional.`

labib666 opened this issue Β· comments

πŸ‘Ÿ Reproduction steps

Steps:

  • Start a password recovery with email and url
  • Use the secret and userId from the link received in email
  • Use node-appwrite client to make a update recovery request
    await account.updateRecovery(userId, secret, password)

The implementation does seem to omit the passwordAgain field

πŸ‘ Expected behavior

Given correct userId, secret and qualifying password, the password reset flow should complete without error.

πŸ‘Ž Actual Behavior

I am getting the following error
{"message":"Param "passwordAgain" is not optional.","code":400,"type":"general_argument_invalid","version":"0.12.141"}

🎲 Appwrite version

Different version (specify in environment)

πŸ’» Operating system

Linux

🧱 Your Environment

I am using GCP Cloud Run to develop a node js app. The backend sdk of appwrite is v.12.0.0.

πŸ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏒 Have you read the Code of Conduct?

any update on fix?
i am using appwrite version: 14.0.1