Skip to content

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

Slack clone: make the confirmation flow clearer

ykdojod84afd27e547
diff --git a/examples/nextjs-slack-clone/pages/index.js b/examples/nextjs-slack-clone/pages/index.js
index 3b7963670d1..0d5def7e6af 100644
--- a/examples/nextjs-slack-clone/pages/index.js
+++ b/examples/nextjs-slack-clone/pages/index.js
@@ -15,6 +15,9 @@ const Home = () => {
type === 'LOGIN'
? await supabase.auth.login(username, password)
: await supabase.auth.signup(username, password)
+ // If the user doesn't exist here and an error hasn't been raised yet,
+ // that must mean that a confirmation email has been sent.
+ if (!user) alert('Signup successful, confirmation mail should be sent soon!')
if (!!user) signIn(user.id, user.email)
} catch (error) {
console.log('error', error)