class JWT::Verify

@deprecated This class is deprecated and will be removed in the next major version of ruby-jwt.

Constants

DEFAULTS
METHODS

Public Class Methods

new(payload, options) click to toggle source

@deprecated This class is deprecated and will be removed in the next major version of ruby-jwt.

# 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
verify_claims(payload, options) click to toggle source

@deprecated This method is deprecated and will be removed in the next major version of ruby-jwt.

# 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