Skip to content

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

Adds Auth generator

Copple5a66b88ea8f8
diff --git a/apps/reference/_gotrue/usage.mdx b/apps/reference/_gotrue/usage.mdx
new file mode 100644
index 00000000000..64eed5538f0
--- /dev/null
+++ b/apps/reference/_gotrue/usage.mdx
@@ -0,0 +1,18 @@
+---
+id: usage
+slug: /usage
+title: Usage
+toc_max_heading_level: 3
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+Documentation of the gotrue API.
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
diff --git a/apps/reference/nav/gotrue_sidebars.js b/apps/reference/nav/gotrue_sidebars.js
index 6a1cfc804a8..ee64cb78492 100644
--- a/apps/reference/nav/gotrue_sidebars.js
+++ b/apps/reference/nav/gotrue_sidebars.js
@@ -18,6 +18,7 @@ const sidebars = {
sidebar: [
'intro',
+ // 'usage', // Hide until the OpenAPI spec is updated to v3
'config',
'release-notes',
// {
diff --git a/apps/reference/package.json b/apps/reference/package.json
index d15f09bc3b0..fff2d452a6a 100644
--- a/apps/reference/package.json
+++ b/apps/reference/package.json
@@ -24,8 +24,9 @@
"gen:cli": "npm-run-all gen:cli:commands gen:cli:config",
"gen:cli:commands": "ts-node ./generator/index.ts gen --type cli --input ../../spec/cli_v1_commands.yaml --output ./_cli/generated/usage.mdx ",
"gen:cli:config": "ts-node ./generator/index.ts gen --type config --input ../../spec/cli_v1_config.yaml --output ./_cli/generated/config.mdx",
- "gen:gotrue": "npm-run-all gen:gotrue:config",
+ "gen:gotrue": "npm-run-all gen:gotrue:config gen:gotrue:usage",
"gen:gotrue:config": "ts-node ./generator/index.ts gen --type config --input ../../spec/gotrue_v1_config.yaml --output ./_gotrue/config.mdx",
+ "gen:gotrue:usage": "ts-node ./generator/index.ts gen --type api --input ../../spec/transforms/auth_v1_openapi_deparsed.json --output ./_gotrue/usage.mdx",
"gen:storage": "npm-run-all gen:storage:api gen:storage:config",
"gen:storage:api": "ts-node ./generator/index.ts gen --type api --input ../../spec/transforms/storage_v0_openapi_deparsed.json --output ./_storage/generated/usage.mdx",
"gen:storage:config": "ts-node ./generator/index.ts gen --type config --input ../../spec/storage_v0_config.yaml --output ./_storage/generated/config.mdx",