T402 API Reference - v2.9.0
    Preparing search index...

    Interface JWSVerifyResult

    Result of verifyJWSSignature. payload is the JSON-parsed payload if decoding succeeded; callers should still validate its structure against their own schema (e.g. OfferPayload).

    interface JWSVerifyResult {
        valid: boolean;
        header?: JWSProtectedHeader;
        payload?: unknown;
        error?: string;
    }
    Index

    Properties

    valid: boolean

    Whether the signature is valid.

    Decoded protected header, if parsing succeeded.

    payload?: unknown

    JSON-parsed payload, if parsing succeeded.

    error?: string

    Error message when valid === false.