Class: PasskeysRails::FinishAuthentication
- Inherits:
-
Object
- Object
- PasskeysRails::FinishAuthentication
- Includes:
- Interactor
- Defined in:
- app/interactors/passkeys_rails/finish_authentication.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/interactors/passkeys_rails/finish_authentication.rb', line 8 def call verify_credential! 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 |