Skip to content

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

Re-generated a few docs with RefGenerator

ykdojo14cbab9aa2b3
diff --git a/web/ReferenceGenerator.ts b/web/ReferenceGenerator.ts
index 5273f612c40..12588924f6d 100644
--- a/web/ReferenceGenerator.ts
+++ b/web/ReferenceGenerator.ts
@@ -1,6 +1,9 @@
/**
* Usage:
- * ts-node docGen.ts -o {output_dir} {input}.yml
+ * ts-node ReferenceGenerator.ts -o {output_dir} {input}.yml
+ *
+ * Example:
+ * ts-node ReferenceGenerator.ts -o docs/client spec/supabase.yml
*/
import Example from './spec/gen/components/Example'
diff --git a/web/docs/client/auth-signin.mdx b/web/docs/client/auth-signin.mdx
index 75d1b61cc78..89a4c61646c 100644
--- a/web/docs/client/auth-signin.mdx
+++ b/web/docs/client/auth-signin.mdx
@@ -65,18 +65,18 @@ The user login details.
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
- provider
+ email
</span>
<span className="method-list-item-label-badge false">
optional
</span>
<span className="method-list-item-validation">
- Provider
+ |
</span>
</h4>
<div class="method-list-item-description">
-One of the providers supported by GoTrue.
+The user's email address.
</div>
@@ -107,18 +107,18 @@ The user's password.
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
- email
+ provider
</span>
<span className="method-list-item-label-badge false">
optional
</span>
<span className="method-list-item-validation">
- |
+ Provider
</span>
</h4>
<div class="method-list-item-description">
-The user's email address.
+One of the providers supported by GoTrue.
</div>
@@ -236,6 +236,7 @@ const { user, error } = await supabase.auth.signIn({
# Not yet implemented
```
+
</TabItem>
-</Tabs>
+</Tabs>
\ No newline at end of file
diff --git a/web/docs/client/auth-signup.mdx b/web/docs/client/auth-signup.mdx
index 99a8723b6b7..261bfc33409 100644
--- a/web/docs/client/auth-signup.mdx
+++ b/web/docs/client/auth-signup.mdx
@@ -65,7 +65,7 @@ The user login details.
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
- email
+ password
</span>
<span className="method-list-item-label-badge required">
required
@@ -76,7 +76,7 @@ The user login details.
</h4>
<div class="method-list-item-description">
-The user's email address.
+The user's password.
</div>
@@ -86,7 +86,7 @@ The user's email address.
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
- password
+ email
</span>
<span className="method-list-item-label-badge required">
required
@@ -97,7 +97,7 @@ The user's email address.
</h4>
<div class="method-list-item-description">
-The user's password.
+The user's email address.
</div>
@@ -110,15 +110,14 @@ The user's password.
</ul>
+## Notes
+- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable email confirmations by going to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
+- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
-## Notes
-
-- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable email confirmations by going to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
-- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
@@ -156,4 +155,4 @@ const { user, error } = await supabase.auth.signUp({
</TabItem>
-</Tabs>
+</Tabs>
\ No newline at end of file
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 96ba34eaac9..821b77041f2 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -219,6 +219,9 @@ pages:
auth.signUp():
$ref: '@supabase/gotrue-js."GoTrueClient".GoTrueClient.signUp'
+ notes: |
+ - By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable email confirmations by going to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
+ - When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
examples:
- name: Sign up
isSpotlight: true
@@ -239,6 +242,7 @@ pages:
notes: |
- A user can sign up either via email or OAuth.
- If you provide `email` without a `password`, the user will be sent a magic link.
+ - The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.io](https://app.supabase.io)
- Specifying a `provider` will open the browser to the relevant login page.
examples:
- name: Sign in with email.