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
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.
- I am currently seeking opportunities as ...
Hey! 👋 I'm a Shopify guy. Been building stores for 8+ years. Still haven't lost my mind. Barely. I make stores that don't suck fast, smooth, and actually built...