Module: PasskeysRails::Authentication
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/passkeys_rails/authentication.rb
Instance Method Summary collapse
Instance Method Details
#authenticate_passkey! ⇒ Object
17 18 19 |
# File 'app/controllers/concerns/passkeys_rails/authentication.rb', line 17 def authenticate_passkey! @authenticate_passkey ||= PasskeysRails.authenticate!(request) end |
#current_agent ⇒ Object
11 12 13 14 15 |
# File 'app/controllers/concerns/passkeys_rails/authentication.rb', line 11 def current_agent @current_agent ||= (passkey_authentication_result.success? && passkey_authentication_result.agent.registered? && passkey_authentication_result.agent) || nil end |
#passkey_authentication_result ⇒ Object
21 22 23 |
# File 'app/controllers/concerns/passkeys_rails/authentication.rb', line 21 def passkey_authentication_result @passkey_authentication_result ||= PasskeysRails.authenticate(request) end |