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

Store Credential id with passkey #270

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

Store Credential id with passkey #270

wants to merge 9 commits into from

Conversation

cpb8010
Copy link
Contributor

@cpb8010 cpb8010 commented Feb 4, 2025

Description

Support multiple passkeys per domain by looking up the credential id from the authenticator data. This is more efficient than just making a list and provides more information to passkey and account management.

Additional context

We also want to update the SDK to support this new init format and to use this credential id in this module instead of storing it as the unique id within the factory.

The odds that the parsing are correct is basically zero,
but right now I can't even build this locally so hopefully CI has better luck?
cpb8010 and others added 5 commits February 4, 2025 19:22
Parsing it from the auth data would only work on creation, not on get
can't figure out how to update pnpm lockfile
Also allows checking if the passkey exists so you can avoid
adding the same passkey to multiple accounts on the same domain
Annoying to do between two repos with the lockfile
For cross-origin support it would be possible to try the same
key on another domain.
You also might want to check if you have an account already without
knowing your address and just your passkey
@cpb8010 cpb8010 changed the title [Draft] Store Credential id with passkey Store Credential id with passkey Feb 7, 2025
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.

1 participant