Skip to content

Commit

Permalink
Merge pull request #12 from Vagab/documentation/passkeys-model
Browse files Browse the repository at this point in the history
Add top level & method documentation into Devise::Passkeys::Model
  • Loading branch information
tcannonfodder committed Jun 23, 2023
2 parents 7c0b8e3 + 1440e87 commit 40e42fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
- https://github.com/ruby-passkeys/devise-passkeys/pull/7/
- Bump `Devise` requirement to `>= 4.7.1`
- https://github.com/ruby-passkeys/devise-passkeys/pull/11
- Document `Devise::Passkeys::Model`
- https://github.com/ruby-passkeys/devise-passkeys/pull/12

## [0.1.0] - 2023-05-07

Expand Down
1 change: 1 addition & 0 deletions THANKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- [@heliocola](https://github.com/heliocola)
- [@johalloran01](https://github.com/johalloran01)
- [@tcannonfodder](https://github.com/tcannonfodder)
- [@Vagab](https://github.com/Vagab)
6 changes: 6 additions & 0 deletions lib/devise/passkeys/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

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, ...`).
module PasskeyAuthenticatable
# 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 users of a new login).
def after_passkey_authentication; end
end
end
Expand Down

0 comments on commit 40e42fd

Please sign in to comment.