Class: Auth0::Verifier::Handler
- Inherits:
-
Object
- Object
- Auth0::Verifier::Handler
- Defined in:
- lib/auth0/verifier/handler.rb
Instance Method Summary collapse
- #config ⇒ Object (also: #configuration)
- #configure {|config| ... } ⇒ Object
-
#initialize(options = {}) ⇒ Handler
constructor
A new instance of Handler.
- #verify(token) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Handler
Returns a new instance of Handler.
9 10 11 12 13 |
# File 'lib/auth0/verifier/handler.rb', line 9 def initialize( = {}) .each do |key, value| config.public_send("#{key}=", value) if config.respond_to?("#{key}=") end end |
Instance Method Details
#config ⇒ Object Also known as: configuration
19 20 21 |
# File 'lib/auth0/verifier/handler.rb', line 19 def config @config ||= Auth0::Verifier::Configuration.new end |
#configure {|config| ... } ⇒ Object
24 25 26 27 |
# File 'lib/auth0/verifier/handler.rb', line 24 def configure yield(config) if block_given? true end |
#verify(token) ⇒ Object
15 16 17 |
# File 'lib/auth0/verifier/handler.rb', line 15 def verify(token) handler.new(token: token, config: config).verify end |