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
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- My account got banned without obvious re...
Hello, I’m a normal user of Appwrite. Today I found my account was banned suddenly, and I can’t log in normally. I have only been doing normal development and...
- cant resume project
Invalid console fingerprint event i try man time