Releases: crystal-community/jwt
Releases · crystal-community/jwt
v1.6.1
v1.6.0
adds optional dynamic key selection
# You may dynamically decide the key by passing a block to the decode function
# the algorithm is optional, you can omit it to use algorithm defined in the header
payload, header = JWT.decode(token, JWT::Algorithm::HS256) do |header, payload|
"the key"
end
v1.5.1
v1.5.0
v1.4.2
v1.4.1
v1.4.0: feat: don't cast the JSON payload unless validation is required
payload decoding now returns a JSON::Any structure for the body instead of a Hash(String,JSON::Any)
this allows for more flexible playload contents if validation is not required.
v1.3.1: fix: provide an explicit error for an invalid payload
fixes compiler warnings
improves error/exception feedback