The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: improve secure password update description
Kang Mingd21be98dab4d
diff --git a/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx b/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsxindex 78d1113b998..371096dda52 100644--- a/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx+++ b/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx@@ -30,7 +30,7 @@ const PROVIDER_EMAIL = {},SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION: {title: 'Secure password change',- description: `Users will need to be recently logged in to change their password.+ description: `Users will need to be recently logged in to change their password without requiring reauthentication.If disabled, a user can change their password at any time.`,type: 'boolean',},@@ -221,8 +221,8 @@ const PROVIDER_PHONE = {units: 'seconds',show: {key: 'SMS_PROVIDER',- matches: ['twilio', 'messagebird', 'textlocal', 'vonage']- }+ matches: ['twilio', 'messagebird', 'textlocal', 'vonage'],+ },},SMS_OTP_LENGTH: {title: 'SMS OTP Length',@@ -231,8 +231,8 @@ const PROVIDER_PHONE = {units: 'digits',show: {key: 'SMS_PROVIDER',- matches: ['twilio', 'messagebird', 'textlocal', 'vonage']- }+ matches: ['twilio', 'messagebird', 'textlocal', 'vonage'],+ },},SMS_TEMPLATE: {title: 'SMS Message',@@ -240,8 +240,8 @@ const PROVIDER_PHONE = {description: 'To format the OTP code use `{{ .Code }}`',show: {key: 'SMS_PROVIDER',- matches: ['twilio', 'messagebird', 'textlocal', 'vonage']- }+ matches: ['twilio', 'messagebird', 'textlocal', 'vonage'],+ },},},validationSchema: object().shape({@@ -286,13 +286,16 @@ const PROVIDER_PHONE = {then: (schema) => schema.required('Twilio Verify Auth Token is required'),otherwise: (schema) => schema,}),- SMS_TWILIO_VERIFY_MESSAGE_SERVICE_SID: string().when(['EXTERNAL_PHONE_ENABLED', 'SMS_PROVIDER'], {- is: (EXTERNAL_PHONE_ENABLED: boolean, SMS_PROVIDER: string) => {- return EXTERNAL_PHONE_ENABLED && SMS_PROVIDER === 'twilio-verify'- },- then: (schema) => schema.required('Twilio Verify Service SID is required'),- otherwise: (schema) => schema,- }),+ SMS_TWILIO_VERIFY_MESSAGE_SERVICE_SID: string().when(+ ['EXTERNAL_PHONE_ENABLED', 'SMS_PROVIDER'],+ {+ is: (EXTERNAL_PHONE_ENABLED: boolean, SMS_PROVIDER: string) => {+ return EXTERNAL_PHONE_ENABLED && SMS_PROVIDER === 'twilio-verify'+ },+ then: (schema) => schema.required('Twilio Verify Service SID is required'),+ otherwise: (schema) => schema,+ }+ ),// MessagebirdSMS_MESSAGEBIRD_ACCESS_KEY: string().when(['EXTERNAL_PHONE_ENABLED', 'SMS_PROVIDER'], {