Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Update SMS factor provider handling for Twilio #1007

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading