Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

change default phone provider

Isaiah Hamilton494fb7d6c325
diff --git a/studio/pages/project/[ref]/auth/settings.tsx b/studio/pages/project/[ref]/auth/settings.tsx
index 874575d4f36..82f79c2df29 100644
--- a/studio/pages/project/[ref]/auth/settings.tsx
+++ b/studio/pages/project/[ref]/auth/settings.tsx
@@ -323,22 +323,17 @@ const Settings = () => {
errorMessage="Please enter the messagebird originator."
/>
</>
- ) : (smsProviderModel?.SMS_PROVIDER === 'twilio' ? (
+ ) : (smsProviderModel?.SMS_PROVIDER === 'textlocal' ? (
<>
<AutoField
- name="SMS_TWILIO_ACCOUNT_SID"
+ name="SMS_TEXTLOCAL_API_KEY"
showInlineError
- errorMessage="Please enter the twilio account sid."
+ errorMessage="Please enter the vonage account sid."
/>
<SecretField
- name="SMS_TWILIO_AUTH_TOKEN"
- showInlineError
- errorMessage="Please enter the twilio auth token."
- />
- <AutoField
- name="SMS_TWILIO_MESSAGE_SERVICE_SID"
+ name="SMS_TEXTLOCAL_SENDER"
showInlineError
- errorMessage="Please enter the twilio message service sid."
+ errorMessage="Please enter the vonage auth token."
/>
</>
) : (smsProviderModel?.SMS_PROVIDER === 'vonage' ? (
@@ -362,14 +357,19 @@ const Settings = () => {
) : (
<>
<AutoField
- name="SMS_TEXTLOCAL_API_KEY"
+ name="SMS_TWILIO_ACCOUNT_SID"
showInlineError
- errorMessage="Please enter the vonage account sid."
+ errorMessage="Please enter the twilio account sid."
/>
<SecretField
- name="SMS_TEXTLOCAL_SENDER"
+ name="SMS_TWILIO_AUTH_TOKEN"
showInlineError
- errorMessage="Please enter the vonage auth token."
+ errorMessage="Please enter the twilio auth token."
+ />
+ <AutoField
+ name="SMS_TWILIO_MESSAGE_SERVICE_SID"
+ showInlineError
+ errorMessage="Please enter the twilio message service sid."
/>
</>
)))}