[PR #5769] refactor: split the passkey plugin into a separate package #14461

Closed
opened 2026-04-13 09:29:09 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5769

State: closed
Merged: Yes


This PR includes the following changes:

  • passkey is now split into a separate package.
  • Updated import paths in the internal code to reflect the change.
  • Adjusted the documentation content accordingly.

https://github.com/better-auth/better-auth/pull/5494: can be closed (duplicate)
https://github.com/better-auth/better-auth/issues/2036: can be closed
https://github.com/better-auth/better-auth/pull/4984: can be closed
https://github.com/better-auth/better-auth/pull/5736: should be used
https://github.com/better-auth/better-auth/pull/5209: should be used


Summary by cubic

Split the passkey plugin into a standalone package, @better-auth/passkey, with dedicated server and client entry points. Updated imports, docs, CLI scaffolding, and removed passkey-related code from better-auth.

  • Refactors

    • Extracted passkey into packages/passkey with exports for server (.) and client (./client).
    • Moved types, schema, error codes, and utils into the new package.
    • Removed passkey plugin and SimpleWebAuthn deps from better-auth.
    • Updated demo, e2e fixtures, tests, and CLI to use new import paths.
    • Refreshed docs with installation steps and new imports; adjusted landing hero example.
  • Migration

    • Install: npm install @better-auth/passkey
    • Server import: change from better-auth/plugins/passkey to @better-auth/passkey
    • Client import: change passkeyClient from better-auth/client/plugins to @better-auth/passkey/client

Written for commit 7d114bf5ce. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5769 **State:** closed **Merged:** Yes --- This PR includes the following changes: - `passkey` is now split into a separate package. - Updated import paths in the internal code to reflect the change. - Adjusted the documentation content accordingly. --- ### Related issues and PRs: https://github.com/better-auth/better-auth/pull/5494: can be closed (duplicate) https://github.com/better-auth/better-auth/issues/2036: can be closed https://github.com/better-auth/better-auth/pull/4984: can be closed https://github.com/better-auth/better-auth/pull/5736: should be used https://github.com/better-auth/better-auth/pull/5209: should be used <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Split the passkey plugin into a standalone package, @better-auth/passkey, with dedicated server and client entry points. Updated imports, docs, CLI scaffolding, and removed passkey-related code from better-auth. - **Refactors** - Extracted passkey into packages/passkey with exports for server (.) and client (./client). - Moved types, schema, error codes, and utils into the new package. - Removed passkey plugin and SimpleWebAuthn deps from better-auth. - Updated demo, e2e fixtures, tests, and CLI to use new import paths. - Refreshed docs with installation steps and new imports; adjusted landing hero example. - **Migration** - Install: npm install @better-auth/passkey - Server import: change from better-auth/plugins/passkey to @better-auth/passkey - Client import: change passkeyClient from better-auth/client/plugins to @better-auth/passkey/client <sup>Written for commit 7d114bf5ce9a88d72202fd4610f4c6835d45eeda. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:29:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14461