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 ( <>