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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...