export const UserFieldsTable = () => { const fields = [ { name: "id", type: "string", description: "Unique identifier — always use this for lookups, not email" }, { name: "displayName", type: "string | null", description: "The user's display name" }, { name: "primaryEmail", type: "string | null", description: "The user's email address (not guaranteed unique)" }, { name: "primaryEmailVerified", type: "boolean", description: "Whether the email has been verified" }, { name: "profileImageUrl", type: "string | null", description: "URL to the user's profile image" }, { name: "signedUpAt", type: "Date", description: "When the user created their account" }, { name: "clientMetadata", type: "any", description: "Custom data, readable/writable from client and server" }, { name: "clientReadOnlyMetadata", type: "any", description: "Custom data, readable from client, writable only from server" }, { name: "serverMetadata", type: "any", description: "Custom data, server-only (only on server-side user objects)" }, { name: "hasPassword", type: "boolean", description: "Whether the user has a password set" }, { name: "isAnonymous", type: "boolean", description: "Whether this is an anonymous user" }, { name: "isRestricted", type: "boolean", description: "Hasn't completed onboarding requirements (e.g. email not verified)" }, ]; return (
User object fields
{fields.map((field) => (
{field.name} {field.type} {field.description}
))}
); };