diff --git a/lib/jwt/verify.rb b/lib/jwt/verify.rb index 7c699352..a7d52724 100644 --- a/lib/jwt/verify.rb +++ b/lib/jwt/verify.rb @@ -45,7 +45,7 @@ def verify_iat return unless @payload.include?('iat') iat = @payload['iat'] - raise(JWT::InvalidIatError, 'Invalid iat') if !iat.is_a?(Numeric) || iat.to_f > Time.now.to_f + raise(JWT::InvalidIatError, 'Invalid iat') if !iat.is_a?(Numeric) || iat.to_i > Time.now.to_i end def verify_iss