-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmodel.rb
More file actions
23 lines (22 loc) · 949 Bytes
/
model.rb
File metadata and controls
23 lines (22 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true
module Devise
module Models
# This is the actual module that gets included in your
# model when you include `:passkey_authenticatable` in the
# `devise` call (eg: `devise :passkey_authenticatable, ...`).
#
# Please consult the {file:README.md#label-Usage} for model installation
# & configuration instructions.
module PasskeyAuthenticatable
# This is a callback that is called right after a successful passkey authentication.
#
# **Important**: You **must** follow the steps in the {file:README.md#label-Usage} to fully set up a model
# and use passkeys.
#
# 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).
# @param passkey [String] the passkey that was used for authentication
def after_passkey_authentication(passkey:); end
end
end
end