Rank 2: Process
Whats is the difference between Get User and Get user preferences
Votes
0
Replies
6
Participants
Unknown
Messages
7
Rank 2: Process
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.
Rank 2: Process
ok
Rank 2: Process
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.
Rank 2: Process
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