I'm developping in flutter/dart, I'm using email token to login to an existing user: _sessionToken = await account.createEmailToken(userId: app.ID.unique(), email: email); _session = await account.createSession(userId: _sessionToken.userId, secret: pin); Then, to set a new passwordI'm using: _currentUser = await account.updatePassword(password: newPassword, oldPassword: null); But I'm always getting an error: AppwriteException: user_invalid_credentials, Invalid credentials. Please check the email and password. (401) Is it supposed to work this way, if yes what I'm doing wrong, if no,, it means there is no way to recover an account using an e-mail token ?
Recommended threads
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...
- How to update from 1.8.1 to 1.9.6
Due to the number of issues reported in version 1.9.5, I am hesitant to proceed with the update. Could anyone advise if version 1.9.6 is stable and resolves tho...
- [1.9.5] Google OAuth do not work anymore
After migrating to 1.8.1 to 1.9.0 then 1.9.5 and login through Google I get on Flutter app "Missing redirect URL" "Your OAuth login flow is missing a proper re...