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
There is no way to verify the exp claim without verifying the JWT. It would be nice to be able to verify a specific claim.
exp=Time.now.to_i - 4 * 3600exp_payload={exp: exp}token=JWT.encodeexp_payload,'asdf','HS256'# This does not verify the expirationdecoded_token=JWT.decodetoken,nil,false,{verify_expiration: true}decoded_token=JWT.decodetoken,nil,true,{verify_expiration: true}# => No verification key available (JWT::DecodeError)