Future<bool> login({required String email, required String password}) async { try { // 1. Create session first final session = await _appwrite.account.createEmailPasswordSession( email: email, password: password, ); // 2. Get current user to verify session print('User logged in: ${session.toMap()}'); final currentUser = await _appwrite.account.get(); print('User Info: ${currentUser.toMap()}');
return true;
} on AppwriteException catch (e) {
debugPrint('Login error: ${e.message}');
return false;
}
}
response: flutter: ❌ Erreur Appwrite: User (role: guests) missing scope (account)
i use windows desktop for this app
Recommended threads
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- Synchronous Function Execution Timed Out...
Hi Appwrite team 👋 I’m facing a synchronous function execution timeout issue on Appwrite Cloud and would appreciate some guidance. I executed this function u...
- Push Notification FCM Error
Hello dear people. I tried to integrate Push Notifications into my Flutter App. Everything works fine on Android/iOS Simulator + Testflight but as soon as I s...