feat(auth-emulator): Add mock Passkey (WebAuthn) support#10609
feat(auth-emulator): Add mock Passkey (WebAuthn) support#10609macastelaz wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces passkey support to the Auth emulator. It adds passkey enrollment and sign-in operations, updates the OpenAPI spec generation scripts, and implements the corresponding backend emulator logic in operations.ts and state.ts. Feedback on the changes suggests improving type safety by avoiding any casts when parsing authenticator responses and avoiding the non-null assertion operator (!) when filtering passkeys to delete.
ec1aa42 to
12e0f15
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10609 +/- ##
=======================================
Coverage ? 57.41%
=======================================
Files ? 602
Lines ? 38427
Branches ? 7734
=======================================
Hits ? 22062
Misses ? 14576
Partials ? 1789 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
Add support to the auth emulator for the passkey API surface. Passkey support is currently in "private preview" on a feature branch of the firebase web auth SDK (https://github.com/firebase/firebase-js-sdk/tree/passkey) and we are working towards a beta release which will involve updating the auth quickstart that in turn relies on the auth emulator.
Scenarios Tested
Using a locally modified quickstart version with passkey support pointing at a locally running auth emulator with these changes (https://screenshot.googleplex.com/3EbEZapL5Ax8o8h.png) I manually verified: