Skip to content

feat: add passkey enrollment prompts#1328

Open
ramya18101 wants to merge 3 commits intomasterfrom
DXCDT-1479-support-passkeys-in-partials
Open

feat: add passkey enrollment prompts#1328
ramya18101 wants to merge 3 commits intomasterfrom
DXCDT-1479-support-passkeys-in-partials

Conversation

@ramya18101
Copy link
Copy Markdown
Contributor

@ramya18101 ramya18101 commented Mar 23, 2026

🔧 Changes

Add support of passkeys in prompt partials

📚 References

https://auth0.com/docs/api/management/v2/prompts/get-partials
https://auth0.com/docs/api/management/v2/prompts/put-partials

🔬 Testing

Added unit tests

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.07%. Comparing base (008916a) to head (12a4d28).

Files with missing lines Patch % Lines
src/tools/auth0/handlers/prompts.ts 12.50% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1328      +/-   ##
==========================================
- Coverage   80.16%   80.07%   -0.09%     
==========================================
  Files         152      152              
  Lines        6090     6098       +8     
  Branches     1244     1247       +3     
==========================================
+ Hits         4882     4883       +1     
- Misses        693      698       +5     
- Partials      515      517       +2     

☔ 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.

@ramya18101 ramya18101 marked this pull request as ready for review March 24, 2026 05:12
@ramya18101 ramya18101 requested a review from a team as a code owner March 24, 2026 05:12
Copy link
Copy Markdown
Contributor

@ankita10119 ankita10119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a unit test for the new error handling path in withErrorHandling, following the same pattern as the existing tests in prompts.tests.ts? Also, was this tested on a tenant with and without passkeys enabled ?

"format": "npx prettier --write .",
"test": "ts-mocha -p tsconfig.json --recursive 'test/**/*.test*' --exclude 'test/e2e/*' --timeout 20000",
"test:e2e:node-module": "ts-mocha -p tsconfig.json --recursive 'test/e2e/*.test*' --timeout 120000",
"test:e2e:node-module": "ts-mocha -p tsconfig.json --recursive 'test/e2e/*.test*' --timeout 150000",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for this change?

mfa-login-options:
pageTitle: 'Log in to ${clientName}'
authenticatorNamesSMS: 'SMS'
passkeys:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add the passkeys examples alongside the existing content rather than replacing it? Some useful examples like login, signup, mfa, and the filters block seem to have been removed unintentionally

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.

3 participants