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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...