The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix examples/javascript-auth signup (data -> session)
Chris Wynnf675fb63d4bb
diff --git a/examples/javascript-auth/index.js b/examples/javascript-auth/index.jsindex 6df938bf3c2..9a5e2fbb353 100644--- a/examples/javascript-auth/index.js+++ b/examples/javascript-auth/index.js@@ -69,11 +69,11 @@ const logoutSubmitted = (event) => {}function setToken(response) {- if (response.user.confirmation_sent_at && !response?.data?.access_token) {+ if (response.user.confirmation_sent_at && !response?.session?.access_token) {alert('Confirmation Email Sent')} else {- document.querySelector('#access-token').value = response.data.access_token- document.querySelector('#refresh-token').value = response.data.refresh_token+ document.querySelector('#access-token').value = response.session.access_token+ document.querySelector('#refresh-token').value = response.session.refresh_tokenalert('Logged in as ' + response.user.email)}}