I am using appwrite for user authentication in my flutter app, but there seems to be an issue while logging out.
Error message: "AppwriteException: general_unauthorized_scope, User (role: guests) missing scope (account) (401)"
This error only appears when I try to log out with a newly created user. When I login and then try to logout, the logout function works fine.
That sound like what should be
When you try tu run the deleteSession with no user logged in it will throw an error.
What you can do is to wrap it in try/catch
Recommended threads
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...
- Problem with getting rows from related t...
Hi, I migrated the Appwrite SDK to 1.8.0 and the package in my Flutter app to version ^20.3.2. I noticed one thing is different. Previously, when I got a JSON r...