The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: add rate_limit_sms_sent config
Kang Ming59d93e958484
diff --git a/studio/components/interfaces/Auth/Auth.types.ts b/studio/components/interfaces/Auth/Auth.types.tsindex 9837f672b7e..aebf5e91076 100644--- a/studio/components/interfaces/Auth/Auth.types.ts+++ b/studio/components/interfaces/Auth/Auth.types.ts@@ -111,6 +111,7 @@ export interface AuthConfig {OPERATOR_TOKEN: string | nullPASSWORD_MIN_LENGTH: numberRATE_LIMIT_EMAIL_SENT: number+ RATE_LIMIT_SMS_SENT: numberRATE_LIMIT_HEADER: string | nullRATE_LIMIT_TOKEN_REFRESH: numberRATE_LIMIT_VERIFY: numberdiff --git a/studio/pages/api/auth/[ref]/config.ts b/studio/pages/api/auth/[ref]/config.tsindex 540bc005430..d7f62b2de4d 100644--- a/studio/pages/api/auth/[ref]/config.ts+++ b/studio/pages/api/auth/[ref]/config.ts@@ -140,6 +140,7 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {SECURITY_CAPTCHA_SECRET: null,SECURITY_REFRESH_TOKEN_REUSE_INTERVAL: '10',RATE_LIMIT_EMAIL_SENT: 0,+ RATE_LIMIT_SMS_SENT: 0,MAILER_SECURE_EMAIL_CHANGE_ENABLED: true,SMS_MESSAGEBIRD_ACCESS_KEY: null,SMS_MESSAGEBIRD_ORIGINATOR: null,diff --git a/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx b/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsxindex d1a2a1cccbf..aa06d1771c3 100644--- a/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx+++ b/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx@@ -73,6 +73,11 @@ const PROVIDER_PHONE = {{ label: 'Vonage', value: 'vonage', icon: 'vonage-icon.svg' },],},+ RATE_LIMIT_SMS_SENT: {+ type: 'number',+ title: 'Rate limit for sending SMS messages',+ description: 'How many SMS messages can be sent per hour',+ },// TwilioSMS_TWILIO_ACCOUNT_SID: {@@ -1342,6 +1347,14 @@ export const OLD = {maximum: 32767,multipleof: 1,},+ RATE_LIMIT_SMS_SENT: {+ title: 'Rate limit',+ type: 'number',+ help: 'Maximum number of SMS-es sent per hour (Default: 30, Max: 32,767)',+ minimum: 1,+ maximum: 32767,+ multipleof: 1,+ },MAILER_SECURE_EMAIL_CHANGE_ENABLED: {title: 'Double confirm email changes',type: 'boolean',diff --git a/studio/stores/jsonSchema/auth_gotrue_config.json b/studio/stores/jsonSchema/auth_gotrue_config.jsonindex 09e5bb3d4ed..a0d00a3deb2 100644--- a/studio/stores/jsonSchema/auth_gotrue_config.json+++ b/studio/stores/jsonSchema/auth_gotrue_config.json@@ -348,6 +348,14 @@"maximum": 32767,"multipleof": 1},+ "RATE_LIMIT_SMS_SENT": {+ "title": "Rate limit",+ "type": "number",+ "help": "Maximum number of SMS messages sent per hour (Default: 30, Max: 32,767)",+ "minimum": 1,+ "maximum": 32767,+ "multipleof": 1+ },"MAILER_SECURE_EMAIL_CHANGE_ENABLED": {"title": "Double confirm email changes","type": "boolean",