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
When passing in a Time object as the value of the exp claim, if the key of the payload is a string it raises a JWT::InvalidPayload error. When using the symbol as the key, it does not raise the error.
When the exp claim key is a string
exp_payload={'exp'=>Time.now}token=JWT.encodeexp_payload,'asdf'# => JWT::InvalidPayload: exp claim must be an integer
When passing in a
Time
object as the value of theexp
claim, if the key of the payload is a string it raises aJWT::InvalidPayload
error. When using the symbol as the key, it does not raise the error.When the
exp
claim key is a stringWhen the
exp
claim key is a symbolSymbol and string keys in the payload should be handle in a consistent way.
The text was updated successfully, but these errors were encountered: