Controls how much of an error withSupabase puts in the response body.
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)