Module: Devise::Models::PasskeyAuthenticatable

Defined in:
lib/devise/passkeys/model.rb

Overview

This is the actual module that gets included in your model when you include :passkey_authenticatable in the devise call (eg: devise :passkey_authenticatable, ...).

Instance Method Summary collapse

Instance Method Details

#after_passkey_authentication(passkey:) ⇒ Object

This is a callback that is called right after a successful passkey authentication.

By default, it is a no-op, but you can override it in your model for any custom behavior (such as notifying the user of a new login).

Parameters:

  • passkey (String)

    the passkey that was used for authentication



14
# File 'lib/devise/passkeys/model.rb', line 14

def after_passkey_authentication(passkey:); end