freechat/docs/content/structures/users.md
shockrah 975acfd606 Backend REST API changes:
* Fixed weird match with get_online_members
+ Now using special(smoll) Public Member struct for public member data fetches as.
They're size on networks should be pretty small so we can package a ton of them in a single request

DOCS changes:
- Removing references to unix timestamps in seconds
- Removing references to joindate
* Exact content-type values now specified
2021-03-20 22:44:22 -07:00

664 B

title anchor weight
Users users 50

Personal User

If you need to get your own user data, with /users/me then the data received on success has the following fields:

Name Type
id u64
secret String
status i32
permissions u64

JWT

This data is retrieved after a sucessful /login hit.

Name Type
jwt String

Full Public User

Name Type
id u64
name String
status i32
permissions u64

For users without the USER_FETCH permission the only two fields with actual data is id and name. The other fields will be set to 0.