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
- Error With iOS Apps
I keep getting the below errors for my flutter app. The clients are registered and have been. This wasn't an issue a few hours ago. AppwriteException: AppwriteE...
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...