How to Verify a JWT in Ruby with JWT.decode
JWT.decode from the jwt gem verifies a JSON Web Token in Ruby. You pass the token, the key, true to verify, and the algorithm you accept, and it returns the payload and the header, or raises an error that says what's wrong.
