The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
changing the order
Copplec59f72af6c6a
diff --git a/apps/www/_blog/2022-08-16-supabase-js-v2.mdx b/apps/www/_blog/2022-08-16-supabase-js-v2.mdxindex 4a2e599b7f0..a1860556daf 100644--- a/apps/www/_blog/2022-08-16-supabase-js-v2.mdx+++ b/apps/www/_blog/2022-08-16-supabase-js-v2.mdx@@ -58,20 +58,6 @@ supabase.from<Database['Message']>('messages').select('*')</details>-### Async Auth overhaul--We've rebuilt the Auth library, making it async for almost all functions.--```ts-// v2-const { data } = await supabase.auth.getSession()--// v1-const { data } = supabase.auth.session()-```--This solves the “getting logged out” issue, which has been a recurring issue in our GitHub Discussions.-### New Auth methodsWe're removing the `signIn()` method in favor of more explicit function signatures:@@ -165,6 +151,20 @@ supabaseYou can listen to PostgreSQL database changes on any channel you want by subscribing to the `'postgres_changes'` event.For now, we will continue to support `from().on().subscribe()`, but in the future we will deprecate this in favor of the `channel().on().subscribe()` method.+### Async Auth overhaul++We've rebuilt the Auth library, making it async for almost all functions.++```ts+// v2+const { data } = await supabase.auth.getSession()++// v1+const { data } = supabase.auth.session()+```++This solves the “getting logged out” issue, which has been a recurring issue in our GitHub Discussions.+## CommunityVersion 2.0 is the result of the combined work of over 100 contributors to our libraries, and over 450 contributors to our docs and websites.