Skip to content

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

enable textlocal settings

Isaiah Hamilton761e8f313e4e
diff --git a/studio/pages/project/[ref]/auth/settings.tsx b/studio/pages/project/[ref]/auth/settings.tsx
index 0672ff65212..23a8a8dac56 100644
--- a/studio/pages/project/[ref]/auth/settings.tsx
+++ b/studio/pages/project/[ref]/auth/settings.tsx
@@ -264,20 +264,21 @@ const Settings = () => {
title="Phone Auth"
schema={pluckJsonSchemaFields(authConfig, [
'SMS_PROVIDER',
- 'SMS_TWILIO_ENABLED',
+ 'SMS_TEXTLOCAL_API_KEY',
+ 'SMS_TEXTLOCAL_SENDER',
'SMS_TWILIO_ACCOUNT_SID',
'SMS_TWILIO_AUTH_TOKEN',
'SMS_TWILIO_MESSAGE_SERVICE_SID',
- 'SMS_MESSENGER_ENABLED',
'SMS_MESSAGEBIRD_ORIGINATOR',
'SMS_MESSAGEBIRD_ACCESS_KEY',
- 'SMS_VONAGE_ENABLED',
'SMS_VONAGE_API_KEY',
'SMS_VONAGE_API_SECRET',
'SMS_VONAGE_FROM'
])}
model={{
SMS_PROVIDER: model.SMS_PROVIDER,
+ SMS_TEXTLOCAL_API_KEY: model.SMS_TEXTLOCAL_API_KEY,
+ SMS_TEXTLOCAL_SENDER: model.SMS_TEXTLOCAL_SENDER,
SMS_TWILIO_ACCOUNT_SID: model.SMS_TWILIO_ACCOUNT_SID || undefined,
SMS_TWILIO_AUTH_TOKEN: model.SMS_TWILIO_AUTH_TOKEN || undefined,
SMS_TWILIO_MESSAGE_SERVICE_SID: model.SMS_TWILIO_MESSAGE_SERVICE_SID || undefined,
@@ -340,7 +341,7 @@ const Settings = () => {
errorMessage="Please enter the twilio message service sid."
/>
</>
- ) : (
+ ) : (smsProviderModel?.SMS_PROVIDER === 'vonage' ? (
<>
<AutoField
name="SMS_VONAGE_API_KEY"
@@ -358,7 +359,20 @@ const Settings = () => {
errorMessage="Please enter the vonage message service sid."
/>
</>
- ))}
+ ) : (
+ <>
+ <AutoField
+ name="SMS_TEXTLOCAL_API_KEY"
+ showInlineError
+ errorMessage="Please enter the vonage account sid."
+ />
+ <SecretField
+ name="SMS_TEXTLOCAL_SENDER"
+ showInlineError
+ errorMessage="Please enter the vonage auth token."
+ />
+ </>
+ )))}
</>
)}
<UIToggle
diff --git a/studio/stores/jsonSchema/auth_gotrue_config.json b/studio/stores/jsonSchema/auth_gotrue_config.json
index 0f36fefdb1f..f375506e746 100644
--- a/studio/stores/jsonSchema/auth_gotrue_config.json
+++ b/studio/stores/jsonSchema/auth_gotrue_config.json
@@ -398,6 +398,10 @@
"title": "Sms Provider",
"type": "string",
"options": [
+ {
+ "value": "textlocal",
+ "label": "Textlocal"
+ },
{
"value": "twilio",
"label": "Twilio"
@@ -412,6 +416,14 @@
}
]
},
+ "SMS_TEXTLOCAL_API_KEY": {
+ "title": "Textlocal API Key",
+ "type": "string"
+ },
+ "SMS_TEXTLOCAL_SENDER": {
+ "title": "Textlocal Sender",
+ "type": "string"
+ },
"SMS_TWILIO_ACCOUNT_SID": {
"title": "Twilio Account SID",
"type": "string"