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
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...