-
Notifications
You must be signed in to change notification settings - Fork 94
feat: Add support for WebAuthn in MFA [v0.50.0] #906
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
Merged
Merged
Conversation
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
5519620
to
f737808
Compare
size-limit report 📦
|
e9f662e
to
b83a40f
Compare
porcellus
requested changes
Jul 30, 2025
Update build Add paths Add component Add sign in Add forms
05df905
to
2d2214c
Compare
…egisterCredentialWithUser` method for user-specific credential registration
2d2214c
to
dc5b114
Compare
dc5b114
to
5b6fe29
Compare
b741420
to
f5b65d0
Compare
f5b65d0
to
526962a
Compare
ccb440e
to
145308b
Compare
205869f
to
a1cc79b
Compare
a1cc79b
to
c2940fa
Compare
porcellus
approved these changes
Aug 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary of change
This PR adds WebAuthn/Passkey support as a multi-factor authentication (MFA) factor.
The feature also involves a change in the
web-js
to include the account linking parameter in the api requests: supertokens/supertokens-web-js#134The implementation adds the following screens in the MFA flow UI:
Secondary factor selection
Sign In
Sign Up Confirmation
There's also a
sign up
screen that's similar to the original one from webauthn. This should be visible when no email has been extracted from the MFA claim during the initial load phase. Although I'm not sure if this is a scenario that can actually happen.Test Plan
I checked the new changes manually.
I'll add new test cases after I fix the sign up bug.
Documentation changes
Checklist for important updates
frontendDriverInterfaceSupported.json
file has been updated (if needed)package.json
package-lock.json
lib/ts/version.ts
npm run build-pretty
git tag
) in the formatvX.Y.Z
, and then find the latest branch (git branch --all
) whoseX.Y
is greater than the latest released tag.someFunc: function () {..}
).size-limit
section ofpackage.json
with the size limit set to the current size rounded up.rollup.config.mjs
lib/ts/types.ts
lib/ts/recipe/multifactorauth/types.ts
Remaining TODOs for this PR