Class: JWT::Verify Deprecated
- Inherits:
-
Object
- Object
- JWT::Verify
- Defined in:
- lib/jwt/verify.rb
Overview
Deprecated.
This class is deprecated and will be removed in the next major version of ruby-jwt.
Class Method Summary collapse
-
.verify_claims(payload, options) ⇒ Object
deprecated
Deprecated.
This method is deprecated and will be removed in the next major version of ruby-jwt.
Instance Method Summary collapse
-
#initialize(payload, options) ⇒ Verify
constructor
deprecated
Deprecated.
This class is deprecated and will be removed in the next major version of ruby-jwt.
Constructor Details
#initialize(payload, options) ⇒ Verify
Deprecated.
This class is deprecated and will be removed in the next major version of ruby-jwt.
Returns a new instance of Verify.
28 29 30 31 32 |
# File 'lib/jwt/verify.rb', line 28 def initialize(payload, ) Deprecations.warning('The ::JWT::Verify class is deprecated and will be removed in the next major version of ruby-jwt') @payload = payload @options = DEFAULTS.merge() end |
Class Method Details
.verify_claims(payload, options) ⇒ Object
Deprecated.
This method is deprecated and will be removed in the next major version of ruby-jwt.
20 21 22 23 24 |
# File 'lib/jwt/verify.rb', line 20 def verify_claims(payload, ) Deprecations.warning('The ::JWT::Verify.verify_claims method is deprecated and will be removed in the next major version of ruby-jwt') ::JWT::Claims.verify!(payload, ) true end |