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
This is a bit of an edge case, but it's caused some confusion for us.
If a string is given with segments that can be Base64.urlsafe_decode64 but doesn't match up to the expectation of a JWT, a TypeError: no implicit conversion of String into Integer is raised instead of a JWT::DecodeError.
An example string is Mw.x.x -- the first segment is decoded as the number 3 for the header which later causes this line to raise the TypeError: no implicit conversion of String into Integer:
This is a bit of an edge case, but it's caused some confusion for us.
If a string is given with segments that can be
Base64.urlsafe_decode64
but doesn't match up to the expectation of a JWT, aTypeError: no implicit conversion of String into Integer
is raised instead of aJWT::DecodeError
.An example string is
Mw.x.x
-- the first segment is decoded as the number3
for the header which later causes this line to raise theTypeError: no implicit conversion of String into Integer
:ruby-jwt/lib/jwt/decode.rb
Line 37 in 1fd5b7a
The text was updated successfully, but these errors were encountered: