Class: Booth::Userland::Webauths::Transitions::Create::AuthenticationVerification
- Inherits:
-
Object
- Object
- Booth::Userland::Webauths::Transitions::Create::AuthenticationVerification
- Includes:
- Concerns::Transition
- Defined in:
- lib/booth/userland/webauths/transitions/create/authentication_verification.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.applicable?(params:) ⇒ Boolean
11 12 13 |
# File 'lib/booth/userland/webauths/transitions/create/authentication_verification.rb', line 11 def self.applicable?(params:) params.key?(:test) && params[:handshake].key?(:rawId) end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 |
# File 'lib/booth/userland/webauths/transitions/create/authentication_verification.rb', line 15 def call request.must_be_json! do_verify_response .on_success { do_persist_confirmation } end |