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

    Type Alias TimestampedHmacFailure

    TimestampedHmacFailure:
        | "malformed-header"
        | "signature-mismatch"
        | "timestamp-outside-tolerance"

    Why verifyTimestampedHmac rejected a signature.

    Type Declaration

    • "malformed-header"

      No usable t value, or no signature under the scheme.

    • "signature-mismatch"

      No listed signature matches the HMAC of ${timestamp}.${payload}.

    • "timestamp-outside-tolerance"

      The signature matches, but the timestamp is outside the tolerance.