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
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...