
Hello guys, after updating to the latest Appwrite Flutter package (17.0.1) I am facing completely weird behavior. None of my login ways are working. Whether the normal email/password:
Future<void> signIn(String email, String password) async {
state = const AsyncValue.loading();
try {
await _wrapAppwriteCall(() async {
final session = await _account.createEmailPasswordSession(
email: email, password: password);
final user = await _account.get(); <-- Fails here
});
} ...
}
I get a valid session after the createEmailPasswordSession request, but the next request is failing with this error
AppwriteException (AppwriteException: general_unauthorized_scope, User (role: guests) missing scope (account) (401))
No clue what I am doing wrong or what changed.
When I use the OAuth2 way then it is completely random behavior.
Future<void> signInOAuth(String providerName) async {
state = const AsyncValue.loading();
try {
await _wrapAppwriteCall(() async {
final OAuthProvider provider;
if (providerName == 'Google') {
provider = OAuthProvider.google;
} else {
provider = OAuthProvider.apple;
}
await _account.createOAuth2Session(provider: provider);
final session = await _account.getSession(sessionId: 'current');
final user = await _account.get();
});
}....
}
When I use google then it depends on the email account I select which error message I get.
For one user I get this error: AppwriteException (AppwriteException: general_unauthorized_scope, User (role: guests) missing scope (account) (401))
For another user I get this error:Missing redirect URL
This is totally weird behavior.
Please give me a hint what could be wrong
Recommended threads
- Email Verification Delay Issues - Need H...
Hi everyone! I launched my product yesterday after testing, and I'm seeing users drop off during email verification. Initially thought users didn't like the pro...
- Im getting stuck adding appwrite to reac...
I'm new to the app development scene and am trying to learn fast through tutorials and stuff. One that I am following is outdated in terms of using appwrite. I'...
- Trigger-Based Email Notification for Dat...
I'm developing a clinical website with an intake form. When users submit their information, it's automatically stored in Appwrite's database. I'd like to set ...
