Skip to content

Add passkey accessor trait#87

Merged
Progdrasil merged 5 commits intomainfrom
add-passkey-accessor-trait
Jan 7, 2026
Merged

Add passkey accessor trait#87
Progdrasil merged 5 commits intomainfrom
add-passkey-accessor-trait

Conversation

@Progdrasil
Copy link
Collaborator

This originally started out as adding username and user_display_name to the Passkey representation struct. But then I abstracted that type away behind a new PasskeyAccessor trait so that the type provided by the store can be acted on in make_credential and get_assertion without any conversions necessary. This allows us to keep context and additional information throughout these methods. This allows CredentialStore and UserValidationMethod to drop explicit use of Passkey altogether, keeping any additional information in the custom types between calls to the store in the same ceremony.

@Progdrasil Progdrasil requested a review from Vogeltak December 29, 2025 19:27
@Progdrasil Progdrasil self-assigned this Dec 29, 2025
Copy link
Contributor

@iinuwa iinuwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks useful! Just a couple of nits.

@Progdrasil Progdrasil force-pushed the add-passkey-accessor-trait branch from 8c85319 to ec57ee0 Compare December 30, 2025 15:20
Copy link
Collaborator

@Vogeltak Vogeltak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! No blocking comments.

@Progdrasil Progdrasil force-pushed the add-passkey-accessor-trait branch from ec57ee0 to 1ecc79b Compare January 7, 2026 18:15
@Progdrasil Progdrasil merged commit e961e44 into main Jan 7, 2026
8 checks passed
@Progdrasil Progdrasil deleted the add-passkey-accessor-trait branch January 7, 2026 18:20
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.

3 participants