Class: PasskeysRails::DebugLogin
- Inherits:
-
Object
- Object
- PasskeysRails::DebugLogin
- Includes:
- Interactor, Debuggable
- Defined in:
- app/interactors/passkeys_rails/debug_login.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'app/interactors/passkeys_rails/debug_login.rb', line 12 def call ensure_debug_mode ensure_regex_match context.agent = agent context.username = agent.username context.auth_token = GenerateAuthToken.call!(agent:).auth_token rescue Interactor::Failure => e context.fail! code: e.context.code, message: e.context. end |