Skip to content

Commit 6e98caa

Browse files
authored
Fix: Update SMS factor provider handling for Twilio (#1007)
Fix: Add SMS factor provider handling for Twilio
1 parent 998fba2 commit 6e98caa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tools/auth0/handlers/guardianFactorProviders.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export default class GuardianFactorProvidersHandler extends DefaultHandler {
7575
// TODO: This is quite a change, needs to be validated for sure.
7676
if (name === 'phone' && provider === 'twilio') {
7777
await this.client.guardian.updatePhoneFactorProviderTwilio(data);
78+
} else if (name === 'sms' && provider === 'twilio') {
79+
await this.client.guardian.setSmsFactorProviderTwilio(data);
7880
} else if (name === 'push-notification' && provider === 'apns') {
7981
await this.client.guardian.updatePushNotificationProviderAPNS(data);
8082
} else if (name === 'push-notification' && provider === 'fcm') {

0 commit comments

Comments
 (0)