Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add excludeCredentials to Passkey Creation Process #83

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Paul-Taiwo
Copy link

This PR introduces the excludeCredentials property to the passkey creation flow. This feature enhances the security and usability of the passkey creation process by preventing duplicate registrations of credentials associated with the same user.

@dagnelies
Copy link
Collaborator

Hi @Paul-Taiwo . Thank you very much for this PR. Although it's good, I slightly hesitate to accept it for various small reasons.

  1. I think it's a better practice to just set the user ID in order to avoid multiple passkeys for the same user. It's also simpler than passing lists of credential IDs around. It also has the advantage of overwriting the existing credential (if there is any) which often provides better UX (overwrite instead of error) and may also help overwrite a problematic credential.
  2. Less to document, understand, test, ...
  3. Allowing multiple accounts, like one for work and a personal one, or for multiple users on the same device, sounds more sensible to me.

Actually, I'm more inclined to revert the random user.id generation (it was a hash of the username before) or add an option to add arbitrary properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants