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).
verifyJWSSignature
payload
OfferPayload
Whether the signature is valid.
Optional
Decoded protected header, if parsing succeeded.
JSON-parsed payload, if parsing succeeded.
Error message when valid === false.
valid === false
Result of
verifyJWSSignature.payloadis the JSON-parsed payload if decoding succeeded; callers should still validate its structure against their own schema (e.g.OfferPayload).