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
- Environment Variables in Nuxt - How to H...
https://appwrite.io/docs/tutorials/nuxt/step-3#environment-variables In the guide, the environment variables are imported simply as ``` const url: string = im...
- Prevent Appwrite from pulling weekly unu...
Hi, I only use node/php runtimes for functions and static-1/node for site. However, appwrite keeps pull gigabytes of runtimes. It makes my VM backup unnecessar...
- Dart Runtime as Function is missing
Hey guys, I set the _APP_FUNCTIONS_RUNTIMES to dart-3.10 and redeployed the appwrite stack but unfortunately the dart runtime doesnt show up. I copied the val...