@contio/partner-sdk - v1.7.1
    Preparing search index...

    Interface WebhookMiddlewareOptions

    Configuration options for webhook middleware

    interface WebhookMiddlewareOptions {
        onError?: (
            error: Error,
            req: Request,
            res: Response,
            next: NextFunction,
        ) => void;
        secret: string;
        signatureHeader?: string;
        skipVerification?: boolean;
    }
    Index

    Properties

    onError?: (
        error: Error,
        req: Request,
        res: Response,
        next: NextFunction,
    ) => void

    Custom error handler for verification failures If not provided, returns 401 with JSON error

    secret: string

    Webhook secret for signature verification

    signatureHeader?: string

    Header name for signature (default: 'x-contio-signature')

    skipVerification?: boolean

    Skip verification (for development only - NOT recommended for production)

    false