Skip to content

Commit

Permalink
Remove default add_module for passkey strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Billiam committed Aug 18, 2023
1 parent 9a57c20 commit 4c13021
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ Devise.add_module :passkey_authenticatable,
model: 'devise/passkeys/model',
route: {session: [nil, :new, :create, :destroy] },
controller: 'controller/sessions',
strategy: true,
no_input: true
strategy: true
```

# FAQs
Expand Down
5 changes: 0 additions & 5 deletions lib/devise/passkeys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,3 @@ def self.create_and_return_passkey(resource:, label:, webauthn_credential:, extr
end
end
end

Devise.add_module :passkey_authenticatable,
model: "devise/passkeys/model",
strategy: true,
no_input: true

0 comments on commit 4c13021

Please sign in to comment.