The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
enable notion settings
Isaiah Hamilton1e3be7c4f535
diff --git a/studio/pages/project/[ref]/auth/settings.tsx b/studio/pages/project/[ref]/auth/settings.tsxindex 292e6583fa5..275882d1a15 100644--- a/studio/pages/project/[ref]/auth/settings.tsx+++ b/studio/pages/project/[ref]/auth/settings.tsx@@ -377,6 +377,9 @@ const Settings = () => {'EXTERNAL_GITLAB_ENABLED','EXTERNAL_GITLAB_CLIENT_ID','EXTERNAL_GITLAB_SECRET',+ 'EXTERNAL_NOTION_ENABLED',+ 'EXTERNAL_NOTION_CLIENT_ID',+ 'EXTERNAL_NOTION_SECRET','EXTERNAL_TWITCH_ENABLED','EXTERNAL_TWITCH_CLIENT_ID','EXTERNAL_TWITCH_SECRET',@@ -415,6 +418,9 @@ const Settings = () => {EXTERNAL_GOOGLE_ENABLED: model.EXTERNAL_GOOGLE_ENABLED,EXTERNAL_GOOGLE_CLIENT_ID: model.EXTERNAL_GOOGLE_CLIENT_ID || undefined,EXTERNAL_GOOGLE_SECRET: model.EXTERNAL_GOOGLE_SECRET || undefined,+ EXTERNAL_NOTION_ENABLED: model.EXTERNAL_NOTION_ENABLED || undefined,+ EXTERNAL_NOTION_CLIENT_ID: model.EXTERNAL_NOTION_CLIENT_ID || undefined,+ EXTERNAL_NOTION_SECRET: model.EXTERNAL_NOTION_SECRET || undefined,EXTERNAL_TWITCH_ENABLED: model.EXTERNAL_TWITCH_ENABLED,EXTERNAL_TWITCH_CLIENT_ID: model.EXTERNAL_TWITCH_CLIENT_ID || undefined,EXTERNAL_TWITCH_SECRET: model.EXTERNAL_TWITCH_SECRET || undefined,@@ -664,6 +670,35 @@ const Settings = () => {</>)}<Divider light />+ <ToggleField+ name="EXTERNAL_NOTION_ENABLED"+ addOns={+ externalProvidersModel.EXTERNAL_NOTION_ENABLED && (+ <a+ className="pl-4 text-gray-400"+ href="https://www.notion.so/my-integrations"+ target="_blank"+ >+ Create new credentials+ </a>+ )+ }+ />+ {externalProvidersModel.EXTERNAL_NOTION_ENABLED && (+ <>+ <AutoField+ name="EXTERNAL_NOTION_CLIENT_ID"+ showInlineError+ errorMessage="Please enter the client id."+ />+ <SecretField+ name="EXTERNAL_NOTION_SECRET"+ showInlineError+ errorMessage="Please enter the secret."+ />+ </>+ )}+ <Divider light /><ToggleFieldname="EXTERNAL_TWITCH_ENABLED"addOns={diff --git a/studio/stores/jsonSchema/auth_gotrue_config.json b/studio/stores/jsonSchema/auth_gotrue_config.jsonindex 4242b8a87ae..1c8bcbd80ae 100644--- a/studio/stores/jsonSchema/auth_gotrue_config.json+++ b/studio/stores/jsonSchema/auth_gotrue_config.json@@ -16,6 +16,7 @@"EXTERNAL_GITHUB_ENABLED","EXTERNAL_GITLAB_ENABLED","EXTERNAL_GOOGLE_ENABLED",+ "EXTERNAL_NOTION_ENABLED","EXTERNAL_TWITCH_ENABLED","EXTERNAL_TWITTER_ENABLED","EXTERNAL_SLACK_ENABLED",@@ -186,6 +187,18 @@"title": "Google secret","type": "string"},+ "EXTERNAL_NOTION_ENABLED": {+ "title": "Notion enabled",+ "type": "boolean"+ },+ "EXTERNAL_NOTION_CLIENT_ID": {+ "title": "Notion client ID",+ "type": "string"+ },+ "EXTERNAL_NOTION_SECRET": {+ "title": "Notion secret",+ "type": "string"+ },"EXTERNAL_TWITCH_ENABLED": {"title": "Twitch enabled","type": "boolean"diff --git a/web/docs/guides/auth/auth-notion.mdx b/web/docs/guides/auth/auth-notion.mdxindex 051d6aed07a..343f58ad875 100644--- a/web/docs/guides/auth/auth-notion.mdx+++ b/web/docs/guides/auth/auth-notion.mdx@@ -93,5 +93,5 @@ async function signout() {- [Supabase Account - Free Tier OK](https://supabase.com)- [Supabase JS Client](https://github.com/supabase/supabase-js)-- [Notion Account](https://Notion.com)-- [Notion Developer Portal](https://Notion.com/developers)+- [Notion Account](https://notion.so)+- [Notion Developer Portal](https://www.notion.so/my-integrations)