The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update auth docs
Kang Mingdaff6551d496
diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.ymlindex 780e982f411..1786a900190 100644--- a/spec/supabase_js_v2.yml+++ b/spec/supabase_js_v2.yml@@ -400,6 +400,9 @@ functions:- id: get-sessiontitle: 'getSession()'$ref: '@supabase/gotrue-js.GoTrueClient.getSession'+ notes: |+ - This method retrieves the current local session (i.e local storage).+ - If the session has an expired access token, this method will use the refresh token to get a new session.examples:- id: get-the-session-dataname: Get the session data@@ -412,8 +415,8 @@ functions:title: 'getUser()'$ref: '@supabase/gotrue-js.GoTrueClient.getUser'notes: |- - This method gets the user object from the current session.- - Fetches the user object from the database instead of local session.+ - This method fetches the user object from the database instead of local session.+ - This method is useful for checking if the user is authorized because it validates the user's access token JWT on the server.- Should be used only when you require the most current user data. For faster results, `getSession().session.user` is recommended.examples:- id: get-the-logged-in-user-with-the-current-existing-session@@ -486,7 +489,7 @@ functions:title: 'refreshSession()'$ref: '@supabase/gotrue-js.GoTrueClient.refreshSession'notes: |- - This method will refresh the session whether the current one is expired or not.+ - This method will refresh and return a new session whether the current one is expired or not.examples:- id: refresh-session-using-the-current-sessionname: Refresh session using the current session