diff --git a/studio/components/to-be-cleaned/Docs/Pages/Authentication.js b/studio/components/to-be-cleaned/Docs/Pages/Authentication.js index 54bc1c25f54..4ad66d322f3 100644 --- a/studio/components/to-be-cleaned/Docs/Pages/Authentication.js +++ b/studio/components/to-be-cleaned/Docs/Pages/Authentication.js @@ -2,7 +2,13 @@ import Link from 'next/link' import Snippets from '../Snippets' import CodeSnippet from '../CodeSnippet' -export default function Authentication({ autoApiService, selectedLang }) { +export default function Authentication({ autoApiService, selectedLang, showApiKey }) { + // [Joshen] ShowApiKey should really be a boolean, its confusing + const defaultApiKey = + showApiKey !== 'SUPABASE_KEY' ? autoApiService.defaultApiKey : 'SUPABASE_CLIENT_API_KEY' + const serviceApiKey = + showApiKey !== 'SUPABASE_KEY' ? autoApiService.serviceApiKey : 'SUPABASE_SERVICE_KEY' + return ( <>

Authentication

@@ -44,19 +50,13 @@ export default function Authentication({ autoApiService, selectedLang }) {
@@ -84,15 +84,13 @@ export default function Authentication({ autoApiService, selectedLang }) {
diff --git a/studio/pages/project/[ref]/api/index.tsx b/studio/pages/project/[ref]/api/index.tsx index d6b9480a285..6653b8d1d3f 100644 --- a/studio/pages/project/[ref]/api/index.tsx +++ b/studio/pages/project/[ref]/api/index.tsx @@ -243,7 +243,13 @@ const GeneralContent = ({ autoApiService, selectedLang, page, showApiKey }: any) if (selected == 'intro' || selected == null) return if (selected == 'auth') - return + return ( + + ) if (selected == 'users') return (