Skip to content

1.1.0

Compare
Choose a tag to compare
@kylef kylef released this 05 Apr 23:39
· 136 commits to master since this release

Enforces that the decode function now takes an algorithm or a set of algorithms which the JWT must match while decoding a JWT (unless verification is disabled).

JWT.decode("eyJhb..hSeJy5w", .HS256("secret"))
JWT.decode("eyJh...5w", [.HS256("secret"), .HS256("secret2"), .HS512("secure")])