TjpinOriginal post
Flutter Developer
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.
Summary
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.