Module: JWT::Claims::DecodeVerifier Private

Defined in:
lib/jwt/claims/decode_verifier.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Verifiers to support the ::JWT.decode method

Class Method Summary collapse

Class Method Details

.verify!(payload, options) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



29
30
31
32
33
34
35
36
# File 'lib/jwt/claims/decode_verifier.rb', line 29

def verify!(payload, options)
  VERIFIERS.each do |key, verifier_builder|
    next unless options[key] || options[key.to_s]

    verifier_builder&.call(options)&.verify!(context: VerificationContext.new(payload: payload))
  end
  nil
end