The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
remove user destructuring in function docs
Inianb3e184f5e76e
diff --git a/spec/supabase_js_v1.yml b/spec/supabase_js_v1.ymlindex cabdd826c4b..0daa83daa92 100644--- a/spec/supabase_js_v1.yml+++ b/spec/supabase_js_v1.yml@@ -607,7 +607,7 @@ pages:isSpotlight: truejs: |```js- const { data: user, error } = await supabase.functions.invoke('hello', {+ const { data, error } = await supabase.functions.invoke('hello', {body: JSON.stringify({ foo: 'bar' })})```@@ -617,7 +617,7 @@ pages:isSpotlight: truejs: |```js- const { data: user, error } = await supabase.functions.invoke('hello', {+ const { data, error } = await supabase.functions.invoke('hello', {responseType: 'text',body: JSON.stringify({ foo: 'bar' })})@@ -628,7 +628,7 @@ pages:isSpotlight: truejs: |```js- const { data: user, error } = await supabase.functions.invoke('hello', {+ const { data, error } = await supabase.functions.invoke('hello', {headers: {"my-custom-header": 'my-custom-header-value'},diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.ymlindex 633c7adb202..cf853181671 100644--- a/spec/supabase_js_v2.yml+++ b/spec/supabase_js_v2.yml@@ -335,7 +335,7 @@ pages:notes: |- `setSession()` takes in a refresh token and uses it to get a new session.- The refresh token can only be used once to obtain a new session.- - Refresh token rotation (see [`REFRESH_TOKEN_ROTATION_ENABLED`](https://supabase.com/docs/reference/auth/config#refresh_token_rotation_enabled)) is enabled by default on all projects to guard against replay attacks.+ - Refresh token rotation (see [`REFRESH_TOKEN_ROTATION_ENABLED`](https://supabase.com/docs/reference/auth/config#refresh_token_rotation_enabled)) is enabled by default on all projects to guard against replay attacks.- You can configure the [`REFRESH_TOKEN_REUSE_INTERVAL`](https://supabase.com/docs/reference/auth/config#refresh_token_reuse_interval) which provides a short window in which the same refresh token can be used multiple times in the event of concurrency or offline issues.examples:- name: Refresh the session@@ -540,9 +540,9 @@ pages:*/const { data, error } = await supabase.auth.resetPasswordForEmail('[email protected]')-+/**- * Step 2: Once the user is redirected back to your application,+ * Step 2: Once the user is redirected back to your application,* ask the user to reset their password.*/useEffect(() => {@@ -551,10 +551,10 @@ pages:const newPassword = prompt("What would you like your new password to be?");const { data, error } = await supabase.auth.updateUser({ password: newPassword })-+if (data) alert("Password updated successfully!")if (error) alert("There was an error updating your password.")- }+ }})}, [])```@@ -1043,7 +1043,7 @@ pages:- name: Filtering through foreign tablesdescription: |If the filter on a foreign table's column is not satisfied, the foreign- table returns `[]` or `null` but the parent table is not filtered out.+ table returns `[]` or `null` but the parent table is not filtered out.<Tabs><TabItem value="schema" label="Schema">@@ -4141,7 +4141,7 @@ pages:description: |Filters work on the row level—they allows you to return rows thatonly match certain conditions without changing the shape of the rows.- Modifiers are everything that don't fit that definition—allowing you to+ Modifiers are everything that don't fit that definition—allowing you tochange the format of the response (e.g., returning a CSV string).Modifiers must be specified after filters. Some modifiers only apply for@@ -4864,7 +4864,7 @@ pages:isSpotlight: truejs: |```js- const { data: user, error } = await supabase.functions.invoke('hello', {+ const { data, error } = await supabase.functions.invoke('hello', {body: { foo: 'bar' }})```@@ -4876,7 +4876,7 @@ pages:```jsimport { FunctionsHttpError, FunctionsRelayError, FunctionsFetchError } from "@supabase/supabase-js";- const { data: user, error } = await supabase.functions.invoke('hello', {+ const { data, error } = await supabase.functions.invoke('hello', {headers: {"my-custom-header": 'my-custom-header-value'},@@ -4897,7 +4897,7 @@ pages:isSpotlight: truejs: |```js- const { data: user, error } = await supabase.functions.invoke('hello', {+ const { data, error } = await supabase.functions.invoke('hello', {headers: {"my-custom-header": 'my-custom-header-value'},