@bates-solutions/payments-core API Reference - v0.2.0
    Preparing search index...

    Interface VerifyTimestampedHmacOptions

    Options for verifyTimestampedHmac.

    interface VerifyTimestampedHmacOptions {
        now?: number;
        scheme?: string;
        tolerance?: number;
    }
    Index
    now?: number

    The current time in Unix seconds. Defaults to the system clock. Coerced with Number() like the tolerance; a value that doesn't coerce to a finite number rejects every timestamp.

    scheme?: string

    The header key the signatures are listed under. Defaults to v1.

    tolerance?: number

    Maximum age (or skew into the future) of the timestamp, in seconds. Defaults to 300. Zero or a negative number turns the check off. A value that isn't a number is coerced with Number(), as the providers' old checks did; one that coerces to NaN rejects every timestamp rather than skipping the check.