Module: JWT::Claims::Verifier Private

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

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.

Class Method Summary collapse

Class Method Details

.errors(context, *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.



32
33
34
35
36
37
38
39
40
# File 'lib/jwt/claims/verifier.rb', line 32

def errors(context, *options)
  errors = []
  iterate_verifiers(*options) do |verifier, verifier_options|
    verify_one!(context, verifier, verifier_options)
  rescue ::JWT::DecodeError => e
    errors << Error.new(message: e.message)
  end
  errors
end

.verify!(context, *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.



24
25
26
27
28
29
# File 'lib/jwt/claims/verifier.rb', line 24

def verify!(context, *options)
  iterate_verifiers(*options) do |verifier, verifier_options|
    verify_one!(context, verifier, verifier_options)
  end
  nil
end