Skip to content

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

Updates signUp and signIn methods

Paul Copplestonede279c0619d5
diff --git a/web/docs/client/auth-signin.mdx b/web/docs/client/auth-signin.mdx
index a9da5265ebf..ec8564db4a6 100644
--- a/web/docs/client/auth-signin.mdx
+++ b/web/docs/client/auth-signin.mdx
@@ -17,7 +17,7 @@ Log in an existing user, or login via a third-party provider.
<TabItem value="js">
```js
-const { error, data } = await supabase.auth.signIn({
+const { user, error } = await supabase.auth.signIn({
password: 'example-password',
})
@@ -160,7 +160,7 @@ The user's email address.
<TabItem value="js">
```js
-const { error, data } = await supabase.auth.signIn({
+const { user, error } = await supabase.auth.signIn({
password: 'example-password',
})
diff --git a/web/docs/client/auth-signout.mdx b/web/docs/client/auth-signout.mdx
index 26a5ea0101b..780e1d3b0f7 100644
--- a/web/docs/client/auth-signout.mdx
+++ b/web/docs/client/auth-signout.mdx
@@ -17,7 +17,7 @@ Signs out the current user, if there is a logged in user.
<TabItem value="js">
```js
-const { error, data } = supabase.signOut()
+const { error } = supabase.signOut()
```
@@ -63,7 +63,7 @@ const { error, data } = supabase.signOut()
<TabItem value="js">
```js
-const { error, data } = supabase.signOut()
+const { error } = supabase.signOut()
```
diff --git a/web/docs/client/auth-signup.mdx b/web/docs/client/auth-signup.mdx
index 70a05368039..34c0114719b 100644
--- a/web/docs/client/auth-signup.mdx
+++ b/web/docs/client/auth-signup.mdx
@@ -17,7 +17,7 @@ Creates a new user.
<TabItem value="js">
```js
-const { error, data } = await supabase.auth.signUp({
+const { user, error } = await supabase.auth.signUp({
password: 'example-password',
})
@@ -136,7 +136,7 @@ The user's password.
<TabItem value="js">
```js
-const { error, data } = await supabase.auth.signUp({
+const { user, error } = await supabase.auth.signUp({
password: 'example-password',
})
diff --git a/web/docs/gotrue/client/session.mdx b/web/docs/gotrue/client/session.mdx
index f646f6b547b..98863249c75 100644
--- a/web/docs/gotrue/client/session.mdx
+++ b/web/docs/gotrue/client/session.mdx
@@ -41,7 +41,7 @@ Returns the session data, if there is an active session.
<TabItem value="js">
```js
-const user = auth.session()
+const session = auth.session()
```
diff --git a/web/docs/gotrue/client/signin.mdx b/web/docs/gotrue/client/signin.mdx
index 81262ee71d3..c73fc1d77c2 100644
--- a/web/docs/gotrue/client/signin.mdx
+++ b/web/docs/gotrue/client/signin.mdx
@@ -17,7 +17,7 @@ Log in an existing user, or login via a third-party provider.
<TabItem value="js">
```js
-const { error, data } = await auth.signIn({
+const { user, error } = await auth.signIn({
password: 'example-password',
})
@@ -157,7 +157,7 @@ The user's email address.
<TabItem value="js">
```js
-const { error, data } = await auth.signIn({
+const { user, error } = await auth.signIn({
password: 'example-password',
})
diff --git a/web/docs/gotrue/client/signout.mdx b/web/docs/gotrue/client/signout.mdx
index 501d0c64834..b8c39caa62d 100644
--- a/web/docs/gotrue/client/signout.mdx
+++ b/web/docs/gotrue/client/signout.mdx
@@ -41,7 +41,7 @@ Signs out the current user, if there is a logged in user.
<TabItem value="js">
```js
-const { error, data } = await auth.signOut()
+const { error } = await auth.signOut()
```
diff --git a/web/spec/gotrue.yml b/web/spec/gotrue.yml
index 42939158bb2..7291f80ccaa 100644
--- a/web/spec/gotrue.yml
+++ b/web/spec/gotrue.yml
@@ -92,7 +92,7 @@ pages:
isSpotlight: true
js: |
```js
- const { error, data } = await auth.signIn({
+ const { user, error } = await auth.signIn({
password: 'example-password',
})
@@ -108,7 +108,7 @@ pages:
- name: Sign out
js: |
```js
- const { error, data } = await auth.signOut()
+ const { error } = await auth.signOut()
```
user:
@@ -126,7 +126,7 @@ pages:
- name: Get user
js: |
```js
- const user = auth.session()
+ const session = auth.session()
```
update:
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index b403f185bdc..4b06beb457b 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -224,7 +224,7 @@ pages:
isSpotlight: true
js: |
```js
- const { error, data } = await supabase.auth.signUp({
+ const { user, error } = await supabase.auth.signUp({
password: 'example-password',
})
@@ -245,7 +245,7 @@ pages:
isSpotlight: true
js: |
```js
- const { error, data } = await supabase.auth.signIn({
+ const { user, error } = await supabase.auth.signIn({
password: 'example-password',
})
@@ -274,7 +274,7 @@ pages:
isSpotlight: true
js: |
```js
- const { error, data } = supabase.signOut()
+ const { error } = supabase.signOut()
```
py: |
```py