Skip to content

feat(testkit): add passkey browser flow#54

Merged
jmgilman merged 1 commit into
masterfrom
feat/session-032-testkit-passkeys
May 22, 2026
Merged

feat(testkit): add passkey browser flow#54
jmgilman merged 1 commit into
masterfrom
feat/session-032-testkit-passkeys

Conversation

@jmgilman
Copy link
Copy Markdown
Contributor

Summary

  • add a browser-facing testkit passkey registration and login flow backed by the existing auth store and exchange path
  • add public passkey/session helpers for server-side WebAuthn session storage without adding authkit HTTP handlers
  • vendor @github/webauthn-json@2.1.1 for browser WebAuthn JSON handling and document local testkit passkey config

Testing

  • go test ./passkey/session ./testkit/internal/httpui ./testkit/internal/authflow ./testkit/cmd/testkit
  • go test ./...
  • go test -tags=integration ./store/postgres ./testkit/internal/authflow
  • moon run root:check --summary minimal
  • git diff --check
  • Chrome virtual-WebAuthn smoke: seed token login, passkey registration, logout, passkey login, paste creation

Notes

  • authkit still does not provide HTTP handlers; passkey/session only packages reusable begin/finish session storage boilerplate.
  • testkit cookies remain localhost-oriented; Secure-cookie hardening is deferred to a separate deployment/config decision.

@jmgilman jmgilman merged commit 92fa195 into master May 22, 2026
2 checks passed
@jmgilman jmgilman deleted the feat/session-032-testkit-passkeys branch May 22, 2026 00:14
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