Rank 2: Process
I have a same problem in appwrite 0.14.x
AppwriteException: general_unauthorized_scope
Do i Need to create new report ?
It was working on 0.13 also it was working on 0.15 too
but not working in 0.14.x
login(String email, String password) async {
try {
final result = await account.createSession(
email: email.trim(), password: password.trim());
print('result.userId');
print(result.toMap());
// _user = await getAccount();
models.User res = await account.get();
_user = UserModel.User.fromJson(res.toMap());
_isLoggedIn = true;
if (_user != null) {
await _fetchKYCDocument();
await checkAndUpdateLanguagePreference();
await getAccountSessions();
await _getUserAccount();
}
// _mixpanel.identify(
// _user!.id); // track users in mixpanel based on appwrite user id
notifyListeners();
} on AppwriteException catch (e) {
print('error in login');
print(e);
if (e.code == 400 || e.code == 401) {
_isUserError = true;
} else {
_isUserError = false;
}
}
}