Back

[SOLVED] Error when try to update account password

  • 1
  • Flutter
  • Cloud
mo7amedtech
9 Sep, 2023, 20:19

hello when try to update account password give me : {message: Invalid credentials. Please check the email and password., code: 401, type: user_invalid_credentials, version: 0.10.52} my code is ==>

TL;DR
Title: [SOLVED] Error when trying to update account password Messages: User encountered error when trying to update account password. Solution was to provide old password. Link to documentation provided. User also questioned if old password was optional. The response clarified that old and new password must be provided. User also made a comment about JWT expiration and asked if getAccount method worked without exceptions. The response confirmed that JWT is necessary and user must be logged in. User then shared the error message received when trying to update account password and shared their code. Solution: Provide the old password when updating the account password.
hamed
9 Sep, 2023, 20:48

Please ensure that the user whose password you want to update is currently logged in

mo7amedtech
9 Sep, 2023, 20:53

It actually is and I brought the jwt

hamed
9 Sep, 2023, 21:08

I read somewhere that this jwt expire after 15 minutes (although I'm not entirely certain). Are you able to execute getAccount without encountering any exceptions?

Drake
9 Sep, 2023, 21:10

You need to provide the old and new password

mo7amedtech
9 Sep, 2023, 21:11

ok thank u, but i think its optional

Drake
9 Sep, 2023, 21:11

How was the user account created?

mo7amedtech
9 Sep, 2023, 21:13

by this method

Drake
9 Sep, 2023, 21:13

Then old password is required. Please read the docs: https://appwrite.io/docs/client/account?sdk=web-default#accountUpdatePassword

mo7amedtech
9 Sep, 2023, 21:14

thank you

Drake
9 Sep, 2023, 21:15

[SOLVED] Error when try to update account 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