Class: JWT::Verify Deprecated

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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, options)
  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(options)
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, options)
  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, options)
  true
end