Skip to main content

Function: validateClaims()

function validateClaims(value): ClaimsResult;

Defined in: claims.ts:78

Validate a decoded payload against the docs/15 §2.1 table.

Reason mapping (docs/15 §4.1 step 5): a structurally broken payload or any wrongly-typed claim ⇒ SCHEMA; a well-typed iss that is not "rasd"ISSUER. The returned claims object is the input object's own enumerable keys — unknown claims survive untouched.

Parameters

ParameterType
valueunknown

Returns

ClaimsResult