Skip to content

feat: add otp_settings support for database connections - #1481

Draft
ankita10119 wants to merge 1 commit into
masterfrom
DXCDT-1959
Draft

feat: add otp_settings support for database connections#1481
ankita10119 wants to merge 1 commit into
masterfrom
DXCDT-1959

Conversation

@ankita10119

Copy link
Copy Markdown
Contributor

🔧 Changes

Adds support for otp_settings on database connections (strategy: auth0), allowing configuration of OTP length and expiry per delivery channel (email and phone).

otp_settings is accepted and returned by the Management API only on strategy: auth0 connections. The property passes through deploy-cli without any special import/export handling, partial updates (e.g. setting only email.otp_length) are supported natively by the API's PATCH endpoint.

Note: The underlying auth0 SDK does not yet include TypeScript types for otp_settings (the property is currently x-internal in the OAS, targeted to go public soon). This PR pre-emptively adds schema and test coverage; the auth0 package version bump will be a follow-up once the SDK is released.

📚 References

🔬 Testing

📝 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)

@ankita10119
ankita10119 requested a review from a team as a code owner September 1, 2026 08:07
@ankita10119
ankita10119 marked this pull request as draft September 1, 2026 08:07
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.81%. Comparing base (4955e4b) to head (5e7263f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1481   +/-   ##
=======================================
  Coverage   80.81%   80.81%           
=======================================
  Files         163      163           
  Lines        7805     7805           
  Branches     1741     1741           
=======================================
  Hits         6308     6308           
  Misses        797      797           
  Partials      700      700           

☔ View full report in Codecov by Harness.
📢 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.

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.

2 participants