Skip to content

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

prompt user to confirm email

Alaister Younged96e8f95568
diff --git a/studio/components/interfaces/SignIn/SignInForm.tsx b/studio/components/interfaces/SignIn/SignInForm.tsx
index c454c79b5b2..dd550d5b908 100644
--- a/studio/components/interfaces/SignIn/SignInForm.tsx
+++ b/studio/components/interfaces/SignIn/SignInForm.tsx
@@ -57,6 +57,14 @@ const SignInForm = () => {
setCaptchaToken(null)
captchaRef.current?.resetCaptcha()
+ if (error.message.toLowerCase() === 'email not confirmed') {
+ return ui.setNotification({
+ id: toastId,
+ category: 'error',
+ message: 'Please click the link sent to your email to confirm your account',
+ })
+ }
+
ui.setNotification({
id: toastId,
category: 'error',
diff --git a/studio/components/interfaces/SignIn/SignUpForm.tsx b/studio/components/interfaces/SignIn/SignUpForm.tsx
index 8d22778b853..9e74474c4da 100644
--- a/studio/components/interfaces/SignIn/SignUpForm.tsx
+++ b/studio/components/interfaces/SignIn/SignUpForm.tsx
@@ -46,7 +46,7 @@ const SignUpForm = () => {
ui.setNotification({
id: toastId,
category: 'success',
- message: `Signed successfully! Please confirm your email before signing in.`,
+ message: `Signed successfully! Please confirm your email before signing in`,
})
await router.push('/sign-in')