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
- Help
- 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...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...