The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix #1304 , Define the defualt behavior of signUp
Gaurav Singh35a3164647d3
diff --git a/examples/javascript-auth/index.js b/examples/javascript-auth/index.jsindex 480acb7afa5..0387054d2c7 100644--- a/examples/javascript-auth/index.js+++ b/examples/javascript-auth/index.js@@ -1,4 +1,3 @@-var SUPABASE_URL = 'https://ernhobnpmmupjnmxpfbt.supabase.co'var SUPABASE_KEY ='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYxMzA5ODU0NCwiZXhwIjoxOTI4Njc0NTQ0fQ.Z9bRrfaL2oGhSuyBckFcdcnRIJDelWJ1II98OnEtLO0'@@ -26,11 +25,9 @@ const signUpSubmitted = (event) => {const password = event.target[1].valuesupabase.auth- .signUp({email, password})+ .signUp({ email, password }).then((response) => {- document.querySelector('#access-token').value = response.data.access_token- document.querySelector('#refresh-token').value = response.data.refresh_token- alert("Logged in as " + response.user.email)+ response.error ? alert(response.error.message) : alert('Confirmation Email Sent')}).catch((err) => {alert(err.response.text)@@ -43,12 +40,13 @@ const logInSubmitted = (event) => {const password = event.target[1].valuesupabase.auth- .signIn({email, password})+ .signIn({ email, password }).then((response) => {- document.querySelector('#access-token').value = response.data.access_token+ response.error+ ? alert(response.error.message)+ : (document.querySelector('#access-token').value = response.data.access_token)document.querySelector('#refresh-token').value = response.data.refresh_token- // response.error ?- alert("Logged in as " + response.user.email)+ alert('Logged in as ' + response.user.email)}).catch((err) => {alert(err.response.text)@@ -56,10 +54,9 @@ const logInSubmitted = (event) => {}const fetchUserDetails = () => {- alert(JSON.stringify(supabase.auth.user()))+ alert(JSON.stringify(supabase.auth.user()))}-const logoutSubmitted = (event) => {event.preventDefault()@@ -68,7 +65,7 @@ const logoutSubmitted = (event) => {.then((response) => {document.querySelector('#access-token').value = ''document.querySelector('#refresh-token').value = ''- alert("Logout successful")+ alert('Logout successful')}).catch((err) => {alert(err.response.text)diff --git a/web/docs/guides/client-libraries.mdx b/web/docs/guides/client-libraries.mdxindex f028b1f5e32..c6f7b68b7a1 100755--- a/web/docs/guides/client-libraries.mdx+++ b/web/docs/guides/client-libraries.mdx@@ -14,7 +14,7 @@ The [Supabase Client](/docs/reference/javascript/supabase-client) makes it simpl## Auth-Create new users using [`signUp()`](/docs/reference/javascript/auth-signup).+Create new users using [`signUp()`](/docs/reference/javascript/auth-signup). By default, the user will need to verify their email address before logging in.<TabsgroupId="libraries"