Back

General_unauthorized_scope

  • 0
  • Flutter
  • Cloud
  • Auth
Tjpin
19 Sep, 2024, 04:14

Hi, I'm currently working on auth part of my app. I have user logged in and session created. When getting current user e.g final Account account = Account(client) final user = await account.get() with all Scopes enabled in project settings I am still getting this error Unhandled Exception: AppwriteException: general_unauthorized_scope, app.662422262de1b965d439@service.cloud.appwrite.io (role: applications) missing scope (account) (401). Someone please help me understand maybe I'm doing it wrong.

TL;DR
Issue: Developer is encountering a 'general_unauthorized_scope' error when trying to get the current user in their app, even with all scopes enabled. Solution: It seems like there is a missing 'account' scope for the user. Make sure to check the settings and include the necessary permissions for 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