
After logging in successfully I am getting this Error. Before I impleamented this helper function:
export async function updateUserPassword(oldPassword, newPassword) { try { const response = await account.updatePassword(newPassword, oldPassword); return response; } catch (error) { console.error("Error updating password:", error); throw new Error(error.message || "Failed to update password."); } }
After testing it the password has changed but I am getting the error in the title after logging in. Can anyone help me out. what may cause this? AI is not helpful

why is account.get() failing after i changed password?

I signed up a new account and got the same error. not sure whats going on

I am guessing it has something to do with not logging out and ending the session after the password is changed. now somehow account.get() is using this expired session to get an account and failing? btw i am recoding so that the user is getting logged out and the logged in again with the new password to prevent this from happening. Any help is welcome

I have wiped data on emulator and closed all sessions. now everthing (log in and account.get() ) is working . can someone help me understand why this happend and how to prevent it?

I think there is something that is logging out the current account else there is no reason for the error
Recommended threads
- updatePassword invalid credentials error...
This is my code: ```js const result = await account.updatePassword( newPassword ); ``` This is my error: ``` [AppwriteException: Invalid cr...
- .setDevKey is not a function
React Native Appwrite doesn't recognize Client.setDevKey
- How to run the "starter-for-react-native...
Normally i use expo, but the folder starter-for-react-native app. doesnt have the files made for it. I'm lost, what do i do?
