The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Km/update copy (#23264)
Kang Ming9963c81a2647
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsxindex fd8186c108b..650933b6470 100644--- a/apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx+++ b/apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx@@ -35,25 +35,24 @@ const PROVIDER_EMAIL = {type: 'boolean',},MAILER_OTP_EXP: {- title: 'Mailer OTP Expiration',+ title: 'Email OTP Expiration',type: 'number',description: 'Duration before an email otp / link expires.',units: 'seconds',},- PASSWORD_MIN_LENGTH: {- title: 'Min password length',- description: 'Users will not be able to use a password shorter than this.',+ MAILER_OTP_LENGTH: {+ title: 'Email OTP Length',type: 'number',+ description: 'Number of digits in the email OTP',+ units: 'number',},},validationSchema: object().shape({- PASSWORD_MIN_LENGTH: number()- .required('A password is required.')- .min(6, 'Password length must be at least 6 characters long'),MAILER_OTP_EXP: number().min(0, 'Must be more than 0').max(86400, 'Must be no more than 86400').required('This is required'),+ MAILER_OTP_LENGTH: number().min(6, 'Must be at least 6').max(10, 'Must be no more than 10'),}),misc: {iconKey: 'email-icon2',diff --git a/apps/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx b/apps/studio/components/interfaces/SignIn/ForgotPasswordForm.tsxindex 65ebad425ba..0c5630b9007 100644--- a/apps/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx+++ b/apps/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx@@ -20,7 +20,7 @@ const ForgotPasswordForm = () => {const { mutate: resetPassword, isLoading } = useResetPasswordMutation({onSuccess: async () => {toast.success(- `If you registered using your email and password, you will receive a password reset email.`+ `If you registered using your email and password, you will receive a password reset email. The password reset link expires in 10 minutes.`)await router.push('/sign-in')},diff --git a/apps/studio/components/interfaces/SignIn/SignUpForm.tsx b/apps/studio/components/interfaces/SignIn/SignUpForm.tsxindex 17bcfbb61e2..10856dd563a 100644--- a/apps/studio/components/interfaces/SignIn/SignUpForm.tsx+++ b/apps/studio/components/interfaces/SignIn/SignUpForm.tsx@@ -60,7 +60,7 @@ const SignUpForm = () => {><Alert className="w-full" withIcon variant="success" title="Check your email to confirm">You've successfully signed up. Please check your email to confirm your account before- signing in to the Supabase dashboard+ signing in to the Supabase dashboard. The confirmation link expires in 10 minutes.</Alert></div><Formdiff --git a/apps/studio/pages/api/auth/[ref]/config.ts b/apps/studio/pages/api/auth/[ref]/config.tsindex a01dcca261b..19ab6e288d8 100644--- a/apps/studio/pages/api/auth/[ref]/config.ts+++ b/apps/studio/pages/api/auth/[ref]/config.ts@@ -41,7 +41,8 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {JWT_DEFAULT_GROUP_NAME: '',URI_ALLOW_LIST: '',MAILER_AUTOCONFIRM: mailer_autoconfirm ?? false,- MAILER_OTP_EXP: 86400,+ MAILER_OTP_EXP: 3600,+ MAILER_OTP_LENGTH: 6,MAILER_URLPATHS_INVITE: '',MAILER_URLPATHS_CONFIRMATION: '',MAILER_URLPATHS_RECOVERY: '',