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
- DB Relational Table Request
Hi, I'd like to suggest a rewording of the relationships between tables. - Current wording: storeOperatingDays can contain one storeId ...
- Domain is already used. Please try again...
I have a website with where the www.domain.me This website works just fine But if I try to visit domain.me. I get this error. I keep getting sent to some app ri...
- Redirect from clicking team invite link ...
Hi all! Pretty new to app development in general so this might be something more generic than appwrite, but I've found (after reading the docs for the Teams API...