Class: PasskeysRails::ValidateAuthToken

Inherits:
Object
  • Object
show all
Includes:
Interactor
Defined in:
app/interactors/passkeys_rails/validate_auth_token.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
# File 'app/interactors/passkeys_rails/validate_auth_token.rb', line 7

def call
  context.fail!(code: :missing_token, message: "X-Auth header is required") if auth_token.blank?

  context.agent = fetch_agent
end