Repository navigation
feat(clerk-js,ui,shared,localizations): Support passkey as a second factor #9127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dmoerner
wants to merge
31
commits into
main
Choose a base branch
from
daniel/user-3966-passkey-as-2fa-option
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
707e4ad
feat(clerk-js,ui,shared,localizations): Support passkey as a second f…
dmoerner c23d0c4
fix: Address CodeRabbit review, add types to clerk/react
dmoerner 1e0fbd7
fix: Degrade to first factor if Flowguard is unset
dmoerner 8dcbbb2
chore: Bump supported fapi version
dmoerner 858b804
Merge branch 'main' into daniel/user-3966-passkey-as-2fa-option
dmoerner 09ee2e6
fix: Prefer passkey
dmoerner f2ceb9e
Merge branch 'main' into daniel/user-3966-passkey-as-2fa-option
dmoerner 08f8f52
test(e2e): Add passkey second factor flows
dmoerner c6f7697
test(e2e): Use TOTP rather than a phone number for the second factor
dmoerner 73c29e2
chore: bundlewatch
dmoerner 3c7dea6
Merge branch 'main' into daniel/user-3966-passkey-as-2fa-option
dmoerner dbec351
Merge remote-tracking branch 'origin/main' into daniel/user-3966-pass…
dmoerner 777ed6d
fix: Bump supported fapi version
dmoerner 4f994ca
fix: Correct E2E staging setup
dmoerner 7dd79eb
Merge branch 'main' into daniel/user-3966-passkey-as-2fa-option
dmoerner 94d6dfd
chore(repo): merge main into daniel/user-3966-passkey-as-2fa-option
dmoerner 43b1304
chore(repo): merge main into daniel/user-3966-passkey-as-2fa-option
dmoerner c192239
chore(clerk-js): bump bundlewatch limits
dmoerner 0024a12
fix(ui): ignore aborted passkey request when switching reverification…
dmoerner 022fc34
fix(clerk-js,shared): respect passkey flow param on MFA-pending sign-ins
dmoerner 957d9c9
chore(repo): merge main into daniel/user-3966-passkey-as-2fa-option
dmoerner 4a42277
Merge remote-tracking branch 'origin/main' into daniel/user-3966-pass…
dmoerner b104169
feat(ui, clerk-js): Support guarding UI capabilities
dmoerner 1e10cca
fix: Hand-write changeset
dmoerner 3241352
Revert "feat(ui, clerk-js): Support guarding UI capabilities"
dmoerner 8900534
fix(ui): Respect the SDK's WebAuthn support check when offering passkeys
dmoerner f6e811d
docs(repo): Update passkey second factor changeset
dmoerner 8bb2b54
Merge remote-tracking branch 'origin/main' into daniel/user-3966-pass…
dmoerner 68c8876
ci(clerk-js): Raise clerk.native.js and clerk.no-rhc.js bundlewatch b…
dmoerner 3dcf7ce
fix(clerk-js,ui): Coalesce passkey MFA prepare and avoid an empty fac…
dmoerner 5d55d7a
test(e2e): Enable TOTP and passkey 2FA on the with-passkeys instance
dmoerner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| '@clerk/shared': minor | ||
| '@clerk/clerk-js': minor | ||
| '@clerk/ui': minor | ||
| '@clerk/localizations': minor | ||
| '@clerk/react': minor | ||
| --- | ||
|
|
||
| Support passkeys as a second factor during sign-in and session reverification. | ||
|
|
||
| When a user has a passkey, the prebuilt `<SignIn/>` and `<UserVerification/>` | ||
| components preselect it as the second factor, as they already do for the first | ||
| factor. Other methods stay available under "Use another method". | ||
|
|
||
| To use it, your instance must allow passkeys to satisfy the second factor. This | ||
| is on by default for instances created after 2026-07-08, and can be turned on | ||
| in the Dashboard for older ones. Web apps also need to opt in to the passkey | ||
| second factor update in the Dashboard. | ||
|
|
||
| If you build a custom flow, `supportedSecondFactors` can now include `passkey`. | ||
| Call `signIn.authenticateWithPasskey()` to complete it. | ||
|
|
||
| Passkeys are no longer preselected, for either factor, where the SDK reports | ||
| that WebAuthn is unavailable (for example, Electron apps without passkey | ||
| support enabled). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.