Back

flutter: AppwriteException: general_unauthorized_scope, User (role: guests) missing scope (account)

  • 0
  • Self Hosted
  • Flutter
  • Auth
Kuromory
11 Jun, 2024, 07:29

I dunno whats going on but... I get this exception only when I log in on windows... on Web I can login without a problem... here is the code:

TypeScript
var _ = await _account.createEmailPasswordSession(
        email: event.email,
        password: event.password,
      );
      final user = await _account.get();
      final teams = await _teams.list();
TL;DR
Issue: Developer is encountering an AppwriteException error with message "general_unauthorized_scope" due to missing scope 'account' for user role 'guests' on Windows, while login works fine on web. Solution: Make sure to assign the appropriate scope 'account' to the user role 'guests' in the code to resolve the unauthorized access issue.
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