
I am trying to get current User, but get this error message when I do. I get back user prefs, but error comes from trying account.get() So I am getting User. I am not sure what variable is not set. I looked into User object, It can be status, emailVerification, phoneVerification, mfa, totp. There is no other bool it is expecting.
Client client = Client();
client
.setEndpoint(DBConstants.localhostAccessPoint)
.setProject(DBConstants.localhostProjectID)
.setSelfSigned(status: true);
Account account = Account(client);
Preferences prefs = await account.getPrefs();
print('prefs: ${prefs.data}');
User user = await account.get();
Recommended threads
- Oauth integration not working after appw...
Hey all, I hope this is the correct category. As the title states, we recently upgraded both our staging and production appwrite to 1.6.1. We had GitHub oauth ...
- ERROR: NIOHTTPCOMPRESSION/DECOMPRESSION
Hello, I finally got my appwrite self-hosted and created an account which went through to the request. However, when I went to test it through Xcode and login t...
- Can Anonymous Sessions Be Converted to U...
According to the documentation, anonymous sessions can be converted into user accounts using email/password, phone (SMS), magic URL, or OAuth2. However, Email O...
