Class: RubySlime::JWTKit::APIVerifier

Inherits:
GenericVerifier show all
Defined in:
lib/ruby_slime/jwt_kit/api_verifier.rb

Instance Method Summary collapse

Methods inherited from GenericVerifier

#call

Constructor Details

#initialize(fetch_secret:, handle_result:) ⇒ APIVerifier

Returns a new instance of APIVerifier.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/ruby_slime/jwt_kit/api_verifier.rb', line 6

def initialize(
  fetch_secret:,
  handle_result:
)
  super(
    fetch_secret: fetch_secret,
    handle_result: handle_result,
    **P_APIVariation.instance.then do |holder|
      {
        required_claims: holder.required_claims,
        payload_schema: holder.payload_schema,
      }
    end,
  )
end