Skip to content

chore: Add MFA example app#2507

Open
tusharpandey13 wants to merge 63 commits intomainfrom
example/mfa
Open

chore: Add MFA example app#2507
tusharpandey13 wants to merge 63 commits intomainfrom
example/mfa

Conversation

@tusharpandey13
Copy link
Contributor

@tusharpandey13 tusharpandey13 commented Jan 28, 2026

Important

This PR is the 3rd PR in a PR stack
Current base: #2502

Add example app to demonstrate MFA APIs
Demonstrates

  • Handling mfa_required errors.
  • Listing available authenticators
  • Making challenge request
  • Getting access token after MFA Step Up
  • Enrolling an authenticator

Usage

  1. Populate .env.local file inside examples/mfa
  2. Run pnpm run dev.

…n update logic to mfaVerify in auth-client, simplify impl
@codecov-commenter
Copy link

codecov-commenter commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (feat/mfa-apis@a918539). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             feat/mfa-apis    #2507   +/-   ##
================================================
  Coverage                 ?   76.68%           
================================================
  Files                    ?       47           
  Lines                    ?     5961           
  Branches                 ?     1036           
================================================
  Hits                     ?     4571           
  Misses                   ?     1383           
  Partials                 ?        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tusharpandey13 tusharpandey13 changed the base branch from main to feat/mfa-apis January 28, 2026 16:15
@tusharpandey13 tusharpandey13 changed the title example/mfa chore: Add MFA example app Jan 28, 2026
tusharpandey13 and others added 19 commits January 28, 2026 22:14
# Conflicts:
#	examples/mfa/app/api/mfa/authenticators/route.ts
#	examples/mfa/app/api/mfa/challenge/route.ts
#	examples/mfa/app/api/mfa/enroll/route.ts
#	examples/mfa/app/api/mfa/verify/route.ts
#	examples/mfa/app/api/protected/route.ts
#	examples/mfa/app/dashboard/page.tsx
#	examples/mfa/components/mfa/otp-input.tsx
#	examples/mfa/components/mfa/recovery-codes.tsx
… oobchannel, oobcode, bindingmethod and barcodeUri
… oobchannel, oobcode, bindingmethod and barcodeUri
@tusharpandey13 tusharpandey13 changed the title chore: Add MFA example app chore: [MFA PR 3/4] Add MFA example app Feb 5, 2026
@tusharpandey13 tusharpandey13 changed the title chore: [MFA PR 3/4] Add MFA example app chore: Add MFA example app Feb 5, 2026
Base automatically changed from feat/mfa-apis to main February 9, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments