Skip to content

refactor(webauthn): remove private methods with underscore prefix#179

Open
AlfioEmanueleFresta wants to merge 10 commits intomasterfrom
remove-private-trait-methods
Open

refactor(webauthn): remove private methods with underscore prefix#179
AlfioEmanueleFresta wants to merge 10 commits intomasterfrom
remove-private-trait-methods

Conversation

@AlfioEmanueleFresta
Copy link
Member

Refactor: move internal _-prefixed methods out of the public WebAuthn trait, and into module-private free functions. Keeping only webauthn_make_credential and webauthn_get_assertion in the public WebAuthn API surface.

No behaviour changes.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the WebAuthn API surface by removing internal _-prefixed methods from the public WebAuthn trait and re-homing their logic into module-private free functions, leaving only webauthn_make_credential and webauthn_get_assertion as the public trait methods.

Changes:

  • Removes _webauthn_* and _negotiate_protocol methods from the public WebAuthn trait.
  • Introduces module-private helper functions (make_credential_*, get_assertion_*, negotiate_protocol) and routes the public trait methods through them.
  • Keeps the existing protocol negotiation + FIDO2/U2F branching behavior in the blanket impl<C: Channel> WebAuthn for C.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AlfioEmanueleFresta AlfioEmanueleFresta changed the title clean(webauthn): remove private methods with underscore prefix refactor(webauthn): remove private methods with underscore prefix Mar 4, 2026
@AlfioEmanueleFresta AlfioEmanueleFresta added the enhancement New feature or request label Mar 4, 2026
Base automatically changed from nopanic to master March 4, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants