Stack Auth allows storing additional user information through three types of metadata fields:Documentation Index
Fetch the complete documentation index at: https://stackauth-e0affa27-apps-support.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- clientMetadata: Readable and writable from a client.
- serverMetadata: Readable and writable only from a server.
- clientReadOnlyMetadata: Readable from a client, writable only from a server.
Client metadata
You can use theclientMetadata field to store non-sensitive information that both the client and server can read and write.
Server-side metadata
For sensitive information, use theserverMetadata field. This ensures the data is only accessible and modifiable by the server.
Client read-only metadata
UseclientReadOnlyMetadata for data that clients need to read but never modify, such as subscription status.