Skip to content

Commit

Permalink
Fix: Update SMS factor provider handling for Twilio (#1007)
Browse files Browse the repository at this point in the history
Fix: Add SMS factor provider handling for Twilio
  • Loading branch information
kushalshit27 authored Jan 3, 2025
1 parent 998fba2 commit 6e98caa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/auth0/handlers/guardianFactorProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 6e98caa

Please sign in to comment.