Hi I have a scenario where I want to just set cust...
# support-questions-legacy
s
Hi I have a scenario where I want to just set custom otp and also not send an SMS on certain condition and have default behaviour in rest of the cases. Is it possible to do that in supertokens. We are using passwordless recipe with having our own sms provider.
r
hey @shrbhara this is possible. To set custom OTP, you can implement the
getCustomUserInputCode
function as shown here: https://supertokens.com/docs/passwordless/common-customizations/sign-in-up/change-otp-format For not sending an SMS, you can implement the sendSms override as shown here: https://supertokens.com/docs/passwordless/sms-delivery/custom-method, and if you don't want to send the SMS, then just don't call the original implementation
4 Views