We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jwt-1.5.6/lib/jwt/decode.rb:26: warning: instance variable @signature not initialized
The text was updated successfully, but these errors were encountered:
Which version of ruby are you using and what code did you use that invoked that error?
Sorry, something went wrong.
$ rvm current ruby-2.3.0 $ ruby -e "require 'jwt'; "\ > "puts JWT.decode('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo1NCwiZXhwIjoxNDkwMTM3ODgyfQ.XhCblmItXo4XK-iOZ-b9ZCMx1n69kjzyJ2AnGdfnLHs', '', false).inspect" ~/.rvm/gems/ruby-2.3.0/gems/jwt-1.5.6/lib/jwt/decode.rb:26: warning: instance variable @signature not initialized [{"user_id"=>54, "exp"=>1490137882}, {"typ"=>"JWT", "alg"=>"HS256"}]
Thanks for the additional information.
This is only triggered when the payload contains jwt claims and verify is set to false.
Related line of code in the current code base: https://github.com/jwt/ruby-jwt/blob/master/lib/jwt/decode.rb#L23
59ff654
excpt
No branches or pull requests
The text was updated successfully, but these errors were encountered: