Sha256: 66294934d5fba9c2365720a788e8b1744bfc207ca9343bb2d41b5948cde7ebfe
Contents?: true
Size: 304 Bytes
Versions: 3
Compression:
Stored size: 304 Bytes
Contents
# frozen_string_literal: true module AppleAuth module Conditions class ExpCondition def initialize(jwt) @exp = jwt['exp'].to_i end def validate! return true if @exp > Time.now.to_i raise JWTValidationError, 'Expired jwt_exp' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems