You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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
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