diff --git a/web/docs/realtime/client/initializing.mdx b/web/docs/realtime/client/initializing.mdx
index 5ce80220a8a..8d82655a683 100644
--- a/web/docs/realtime/client/initializing.mdx
+++ b/web/docs/realtime/client/initializing.mdx
@@ -25,7 +25,7 @@ Initializes the Socket
required
@@ -46,7 +46,7 @@ The string WebSocket endpoint, ie, "ws://example.com/socket", "wss://example.com
optional
- Options
+ Options
diff --git a/web/spec/combined.json b/web/spec/combined.json
index d1bc9a24b51..7953a85d1a0 100644
--- a/web/spec/combined.json
+++ b/web/spec/combined.json
@@ -6673,7 +6673,7 @@
"isExported": true
},
"comment": {
- "shortText": "Sends a reset request to an email address."
+ "shortText": "\n\n\n\n```js\nconst { data, error } = supabase.auth.api.resetPasswordForEmail('user@email.com')\n```\n\n\n\n\n\n```py\n# Not yet implemented\n```\n\n\n\n\n\n\nSends a reset request to an email address.\n\nWhen the user clicks the reset link in the email they will be forwarded to:\n`#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery`\n\nYour app must detect `type=recovery` in the fragment and display a password reset form to the user.\n\nYou should then use the access_token in the url and new password to update the user as follows:\n\n```js\nconst { error, data } = await auth.api\n .updateUser(access_token, { password : new_password })\n```"
},
"parameters": [
{
diff --git a/web/spec/gotrue.json b/web/spec/gotrue.json
index 23a175b6443..12121d13ebc 100644
--- a/web/spec/gotrue.json
+++ b/web/spec/gotrue.json
@@ -872,7 +872,7 @@
"isExported": true
},
"comment": {
- "shortText": "Sends a reset request to an email address."
+ "shortText": "\n\n\n\n```js\nconst { data, error } = supabase.auth.api.resetPasswordForEmail('user@email.com')\n```\n\n\n\n\n\n```py\n# Not yet implemented\n```\n\n\n\n\n\n\nSends a reset request to an email address.\n\nWhen the user clicks the reset link in the email they will be forwarded to:\n`#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery`\n\nYour app must detect `type=recovery` in the fragment and display a password reset form to the user.\n\nYou should then use the access_token in the url and new password to update the user as follows:\n\n```js\nconst { error, data } = await auth.api\n .updateUser(access_token, { password : new_password })\n```"
},
"parameters": [
{
diff --git a/web/spec/gotrue.yml b/web/spec/gotrue.yml
index 74de4f0252b..78ce93b72d7 100644
--- a/web/spec/gotrue.yml
+++ b/web/spec/gotrue.yml
@@ -182,7 +182,7 @@ pages:
- name: Sign up a new user with email
js: |
```js
- const { error, data } = await api
+ const { error, data } = await auth.api
.signUpWithEmail('example@email.com', 'example-password')
```
@@ -192,7 +192,7 @@ pages:
- name: Sign in a user with email
js: |
```js
- const { error, data } = await api
+ const { error, data } = await auth.api
.signInWithEmail('example@email.com', 'example-password')
```
@@ -202,7 +202,7 @@ pages:
- name: Send user a passwordless login link via email
js: |
```js
- const { error, data } = await api
+ const { error, data } = await auth.api
.sendMagicLinkEmail('example@email.com')
```
@@ -212,7 +212,7 @@ pages:
- name: Send a user an invite link to sign up via email
js: |
```js
- const { error, data } = await api
+ const { error, data } = await auth.api
.inviteUserByEmail('example@email.com')
```
@@ -222,7 +222,7 @@ pages:
- name: Send a user a password reset email
js: |
```js
- const { error, data } = await api
+ const { error, data } = await auth.api
.resetPasswordForEmail('example@email.com')
```
@@ -232,7 +232,7 @@ pages:
- name: Sign a user out
js: |
```js
- const { error, data } = await api
+ const { error, data } = await auth.api
.signOut(access_token)
```
@@ -242,7 +242,7 @@ pages:
- name: Get the user details for a given user
js: |
```js
- const { error, data } = await api
+ const { error, data } = await auth.api
.getUser(access_token)
```
@@ -252,7 +252,7 @@ pages:
- name: Update user info that Gotrue holds (also used for setting new passwords)
js: |
```js
- const { error, data } = await api
+ const { error, data } = await auth.api
.updateUser(access_token, { password : 'Why Shinji?' })
```
@@ -262,6 +262,6 @@ pages:
- name: Get a new access and refresh token using a valid refresh_token
js: |
```js
- const { error, data } = await api
+ const { error, data } = await auth.api
.refreshAccessToken(refresh_token)
```