Sha256: 8fd5ce8a826cf1ee7ad4d1de21a5e5c4fa833e234277c570eefa93c66250915a
Contents?: true
Size: 317 Bytes
Versions: 3
Compression:
Stored size: 317 Bytes
Contents
# frozen_string_literal: true module AppleAuth module Conditions class IatCondition def initialize(jwt) @iat = jwt['iat'].to_i end def validate! return true if @iat <= Time.now.to_i raise JWTValidationError, 'jwt_iat is greater than now' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems