module JwtClaims::Claim::Iat

Issued at @see tools.ietf.org/html/rfc7519#section-4.1.6

Public Instance Methods

reject?(numeric_date, _options = {}) click to toggle source

@param numeric_date [Numeric] the number of seconds from 1970-01-01T00:00:00Z UTC

until the specified UTC date/time, and non-integer values may be used

@param options [Hash] optional, ignored @return [true, false] whether to reject the claim

# File lib/jwt_claims/claim/iat.rb, line 13
def reject?(numeric_date, _options = {})
  return true unless numeric_date.is_a?(Numeric)
  numeric_date >= Time.now.to_i
end