Ryan LaMirand
03/11/2026, 2:38 PMDevRev
03/11/2026, 2:38 PMproduction tag enabled, which automatically disables static OTP codes for test users .
Check Project Settings
1. Go to Project Settings
2. Look under General > Environment Settings
3. Check if the production tag is applied to your project
Resolution Options
If you need static OTP codes for testing:
1. Remove the production tag from your project settings
2. Re-enable Static OTP codes under Project Settings > Test User section
Alternatively, use generated OTP codes instead:
// Generate OTP for test user via Management API
const resp = await descopeClient.management.user.generateOTPForTestUser("email", "<mailto:test@example.com|test@example.com>");
• Static OTP codes are automatically disabled in production-tagged projects for security
• This setting is excluded from production environments by design
• Consider using the generateOTPForTestUser API method for more secure testing
Project Settings | Descope Documentation
Test User Management Overview | Descope Documentation
Test Users in Backend | Descope DocumentationRyan LaMirand
03/11/2026, 2:43 PMDevRev
03/11/2026, 2:43 PM# Check if users are still test users via Management API
GET /v1/mgmt/user?loginId=your-test-user@example.com
# Look for "test": true in the response
Temporary Workaround
Use the generateOTPForTestUser API to get real OTP codes for testing:
const resp = await descopeClient.management.user.generateOTPForTestUser("email", "<mailto:test@example.com|test@example.com>");
console.log("Generated OTP:", resp.data.code);
The documentation doesn't cover this specific scenario. I'd recommend checking your Project Settings first, then contacting Descope support if the static OTP setting appears correct but isn't working.Ryan LaMirand
03/11/2026, 2:49 PMDevRev
03/11/2026, 2:49 PMconst resp = await descopeClient.management.user.generateOTPForTestUser("sms", "+1234567890");
// Use the returned code for verification
Report the Issue
This sounds like a platform bug that needs immediate attention. Contact Descope support with:
• Your project ID
• Exact time when static OTP stopped working
• Screenshots of your current Static OTP configuration
• Example test user details that should match the regex
The timing of this issue (working hours ago, suddenly stopped) strongly suggests a platform-side change rather than a configuration problem on your end.