Metadata
Store your own data on a user. There are three kinds, and the difference is who can read and write them.
Kind | Frontend can read | Frontend can write | In the session token |
|---|---|---|---|
| yes | no | optional |
| no | no | no |
| yes | yes | no |
await keyward.users.updateMetadata(userId, { public: { plan: "pro" } });Metadata is limited to 8 KB per user. Put anything larger in your own database and store its ID here.
Updated
Was this page helpful?