Class: JWT::Claims::Numeric
- Inherits:
-
Object
- Object
- JWT::Claims::Numeric
- Defined in:
- lib/jwt/claims/numeric.rb
Overview
The Numeric class is responsible for validating numeric claims in a JWT token. The numeric claims are: exp, iat and nbf
Instance Method Summary collapse
-
#verify!(context:) ⇒ nil
Verifies the numeric claims in the JWT context.
Instance Method Details
#verify!(context:) ⇒ nil
Verifies the numeric claims in the JWT context.
22 23 24 |
# File 'lib/jwt/claims/numeric.rb', line 22 def verify!(context:) validate_numeric_claims(context.payload) end |