Skip to content

2.1.0

Compare
Choose a tag to compare
@kylef kylef released this 18 Jan 15:52
· 75 commits to master since this release

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()