Skip to content
GitHub

OTP Configuration

Defines OTP generation, validation, and resend behavior for passwordless authentication flows.

Table name: otp_config

FieldTypeDescription
tenant_idCHAR(10)Tenant identifier (Primary Key)
is_otp_mockedBOOLEANWhether OTP is mocked for testing
otp_lengthINTLength of OTP codes
try_limitINTMaximum number of OTP attempts
resend_limitINTMaximum number of OTP resend attempts, not including the first one that is implicitly sent via init
otp_resend_intervalINTMinimum interval in seconds between OTP resends
otp_validityINTOTP validity duration in seconds
whitelisted_inputsJSONWhitelisted OTP input patterns

For SMS-OTP flows, you also need:

For Email-OTP flows, you also need:

See SMS/Email Service Integration for detailed integration information.