Omniauth JWT gem has incompatible JWT gem version
The decode
method in https://github.com/mbleigh/omniauth-jwt/blob/master/lib/omniauth/strategies/jwt.rb#L26 will not work if using the JWT gem version 1.0. This is due to the fact that JWT.decode
now returns an array and not an hash which in turn will cause https://github.com/mbleigh/omniauth-jwt/blob/master/lib/omniauth/strategies/jwt.rb#L28 !@decoded.key?(field.to_s)
will raise a NoMethodError
on the key?
method that does not exist for an Array
object.
More info: https://github.com/mbleigh/omniauth-jwt/issues/2 related PR: https://github.com/mbleigh/omniauth-jwt/pull/5 (Will not get merged)
This was not caught during development and it was my fault. I apologize for any inconvenience this may have caused.