The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
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.jsindex 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)