Skip to content

feat(webauthn): add REST endpoints for passkey authentication - #1697

Closed
theothersideofgod wants to merge 1 commit into
mainfrom
feat/webauthn-http-endpoints
Closed

feat(webauthn): add REST endpoints for passkey authentication#1697
theothersideofgod wants to merge 1 commit into
mainfrom
feat/webauthn-http-endpoints

Conversation

@theothersideofgod

Copy link
Copy Markdown
Contributor

Summary

Endpoints

  • POST /auth/webauthn/register/begin - start registration
  • POST /auth/webauthn/register/finish - complete registration
  • POST /auth/webauthn/sign-in/begin - start sign-in
  • POST /auth/webauthn/sign-in/finish - complete sign-in

Implementation

  • Uses @simplewebauthn/server for credential verification
  • Token generation uses DB digest() function (same as sign_in)
  • Integrates with existing webauthnSettings context

Test plan

  • E2E flow tested (register → sign-in → API call)
  • Demo available at constructive-tdd/passkey/

Closes #1236

🤖 Generated with Claude Code

- Add /auth/webauthn/register/begin and /finish for passkey registration
- Add /auth/webauthn/sign-in/begin and /finish for passkey authentication
- Use database digest() function for token hashing (same as sign_in)
- Add @simplewebauthn/server dependency

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

feat: Implement WebAuthn/Passkey HTTP API endpoints

2 participants