@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Interface VerifyWebhookResult

    Outcome of verifyWebhookSignature.

    The verifier never throws; instead it returns a discriminated result so callers can branch on valid and log reason without try/catch noise. Use requireValidWebhook when an exception-based control flow is more convenient.

    interface VerifyWebhookResult {
        payload: WebhookPayload | null;
        reason: string | null;
        valid: boolean;
    }
    Index

    Properties

    Properties

    payload: WebhookPayload | null

    Parsed payload when valid is true; otherwise null.

    reason: string | null

    Short reason describing why verification failed, or null on success.

    valid: boolean

    true only when the HMAC matched and the body parsed as a valid payload.