Skip to content
Back

Issue with email/password auth in Flutter application

  • 0
  • Flutter
  • Cloud
tneot01
7 Apr, 2026, 14:13

is there an issue with Flutter auth right now? I am unable to login all of a sudden in my app with createEmailPasswordSession... when I go to verify the login status with await account.get(); I get a 401 error:

TypeScript
AppwriteException: general_unauthorized_scope, User (role: guests) missing scopes (["account"]) (401)

The app has worked for over 1.5 years without seeing this issue, so not sure what the cause could be. Let me know if any further details are required.

TL;DR
Developers are experiencing issues with email/password authentication in a Flutter application, receiving a 401 error related to unauthorized scopes. This issue might stem from missing scopes for the user role. The problem might be due to changes in the app configuration. To fix this, ensure that the necessary scopes are assigned to the user's role, particularly the "account" scope.
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