Server: ErrorResponseConfig

Controls how much of an error withSupabase puts in the response body.

Parameters

Examples

Trimming the response

// Full payload: source, code, message, hint, docs, details
withSupabase({ auth: 'user' }, handler)

// Trimmed: code and message only
withSupabase({ auth: 'user', errors: { detailed: false } }, handler)