From 6e98caa295aac489a5cd7766f25d905f985cc095 Mon Sep 17 00:00:00 2001 From: Kushal <43465488+kushalshit27@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:49:27 +0530 Subject: [PATCH] Fix: Update SMS factor provider handling for Twilio (#1007) Fix: Add SMS factor provider handling for Twilio --- src/tools/auth0/handlers/guardianFactorProviders.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/auth0/handlers/guardianFactorProviders.ts b/src/tools/auth0/handlers/guardianFactorProviders.ts index 34e071417..a6c7c152c 100644 --- a/src/tools/auth0/handlers/guardianFactorProviders.ts +++ b/src/tools/auth0/handlers/guardianFactorProviders.ts @@ -75,6 +75,8 @@ export default class GuardianFactorProvidersHandler extends DefaultHandler { // TODO: This is quite a change, needs to be validated for sure. if (name === 'phone' && provider === 'twilio') { await this.client.guardian.updatePhoneFactorProviderTwilio(data); + } else if (name === 'sms' && provider === 'twilio') { + await this.client.guardian.setSmsFactorProviderTwilio(data); } else if (name === 'push-notification' && provider === 'apns') { await this.client.guardian.updatePushNotificationProviderAPNS(data); } else if (name === 'push-notification' && provider === 'fcm') {