Skip to content

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

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.mdx
index 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 methods
We're removing the `signIn()` method in favor of more explicit function signatures:
@@ -165,6 +151,20 @@ supabase
You 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.
+
## Community
Version 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.