For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
Controls how much of an error goes in the response body. Accepted as errors by withSupabase and by every middleware that answers a request directly: withClaims, withRequiredClaims, withPostgresClient, withPostgresAdminClient and withOAuthProtectedResource.
Whether to include the diagnostic fields in the response body. `hint` names the likely misconfiguration, `details` reports the endpoint's accepted auth modes, which credential headers arrived, and the *names* of configured keys, and `docs` links the relevant reference. All three are aimed at whoever is building against the endpoint. Set to `false` to reduce the body to `code` and `message` alone. The `x-supabase-server-error` header and the HTTP status are unaffected, and `message` keeps its `[@supabase/server]` prefix — so the error stays traceable without the `source` field.
// Full payload: source, code, message, hint, docs, details
withSupabase({ auth: 'user' }, handler)
// Trimmed: code and message only
withSupabase({ auth: 'user', errors: { detailed: false } }, handler)