Module: JwtClaims::Claim::Nbf
- Defined in:
- lib/jwt_claims/claim/nbf.rb
Overview
Not before
Class Method Summary collapse
-
.reject?(numeric_date, options = {}) ⇒ true, false
Whether to reject the claim.
Class Method Details
.reject?(numeric_date, options = {}) ⇒ true, false
12 13 14 15 |
# File 'lib/jwt_claims/claim/nbf.rb', line 12 def reject?(numeric_date, = {}) return true unless numeric_date.is_a?(Numeric) numeric_date > Time.now.to_i end |