Whats is the difference between Get User and Get user preferences
Each user has a place that can hold up to 64KB of information in a key-value pairs (In web it returns as JSON object)
Account.get() - Will return the user object when loggin and throw error in case not.
Account.getPrefs() - Will work only if the user is logged in, and will return a generic JSON object with any custom fields that are in the user preferences.
ok
will Account.getperfs() will work if user is offline for ,login check
No,
Account.getPrefs() will work only if the users is logged in, either by session or by JWT token.
so how ca we check offline, if user has no internet
From what I've look into the code it's 100% online function That's means that in offline you won't be able to get valuable infromation from the function
Recommended threads
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- Team invite - 500 error - no email
When executing ```dart await _repository.teams.createMembership( teamId: event.listId, roles: ['member'], email: event.email, url: 'xxxx', ); ``` I se...