2.1.0
Enhancements
-
Introduces a new
ClaimSet
structure. The structure can be returned from
decode
providing you convenience accessors.encode
will now accept a
ClaimSet
.ClaimSet
provides methods to manually validate individual claims.try claims.validateAudience("example.com") try claims.validateIssuer("fuller.li") try claims.validateExpiary() try claims.validateNotBefore() try claims.validateIssuedAt()