The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Check and clarify API keys (#41200)
Chris Chinchillaa3b7c8f3a727
diff --git a/apps/docs/content/_partials/api_settings.mdx b/apps/docs/content/_partials/api_settings.mdxindex 090ae9ba089..7f19874cef8 100644--- a/apps/docs/content/_partials/api_settings.mdx+++ b/apps/docs/content/_partials/api_settings.mdx@@ -2,15 +2,17 @@Now that you've created some database tables, you are ready to insert data using the auto-generated API.-To do this, you need to get the Project URL and key. Get the URL from [the API settings section](/dashboard/project/_/settings/api) of a project and the key from the [the API Keys section of a project's Settings page](/dashboard/project/_/settings/api-keys/).+To do this, you need to get the Project URL and key from [the project **Connect** dialog](/dashboard/project/\_?showConnect=true&connectTab={{ .tab }}&framework={{ .framework }}).<Admonition type="note" title="Changes to API keys">Supabase is changing the way keys work to improve project security and developer experience. You can [read the full announcement](https://github.com/orgs/supabase/discussions/29260), but in the transition period, you can use both the current `anon` and `service_role` keys and the new publishable key with the form `sb_publishable_xxx` which will replace the older keys.-To get the key values, open [the API Keys section of a project's Settings page](/dashboard/project/_/settings/api-keys/) and do the following:+In most cases, you can get the correct key from [the Project's **Connect** dialog](/dashboard/project/\_?showConnect=true&connectTab={{ .tab }}&framework={{ .framework }}), but if you want a specific key, you can find all keys in [the API Keys section of a Project's Settings page](/dashboard/project/_/settings/api-keys/):- **For legacy keys**, copy the `anon` key for client-side operations and the `service_role` key for server-side operations from the **Legacy API Keys** tab.- **For new keys**, open the **API Keys** tab, if you don't have a publishable key already, click **Create new API Keys**, and copy the value from the **Publishable key** section.</Admonition>++[Read the API keys docs](/docs/guides/api/api-keys) for a full explanation of all key types and their uses.diff --git a/apps/docs/content/_partials/api_settings_steps.mdx b/apps/docs/content/_partials/api_settings_steps.mdxindex dbd3d3cd7e6..e3f21307de0 100644--- a/apps/docs/content/_partials/api_settings_steps.mdx+++ b/apps/docs/content/_partials/api_settings_steps.mdx@@ -1,12 +1,16 @@{/* TODO: How to completely consolidate partials? */}+You can also get the Project URL and key from [the project's **Connect** dialog](/dashboard/project/\_?showConnect=true&connectTab={{ .tab }}&framework={{ .framework }}).+<Admonition type="note" title="Changes to API keys">Supabase is changing the way keys work to improve project security and developer experience. You can [read the full announcement](https://github.com/orgs/supabase/discussions/29260), but in the transition period, you can use both the current `anon` and `service_role` keys and the new publishable key with the form `sb_publishable_xxx` which will replace the older keys.-To get the key values, open [the API Keys section of a project's Settings page](/dashboard/project/_/settings/api-keys/) and do the following:+In most cases, you can get the correct key from [the Project's **Connect** dialog](/dashboard/project/\_?showConnect=true&connectTab={{ .tab }}&framework={{ .framework }}), but if you want a specific key, you can find all keys in [the API Keys section of a Project's Settings page](/dashboard/project/_/settings/api-keys/):- **For legacy keys**, copy the `anon` key for client-side operations and the `service_role` key for server-side operations from the **Legacy API Keys** tab.- **For new keys**, open the **API Keys** tab, if you don't have a publishable key already, click **Create new API Keys**, and copy the value from the **Publishable key** section.</Admonition>++[Read the API keys docs](/docs/guides/api/api-keys) for a full explanation of all key types and their uses.diff --git a/apps/docs/content/_partials/kotlin_project_setup.mdx b/apps/docs/content/_partials/kotlin_project_setup.mdxindex 751559eaff0..1f32521eefd 100644--- a/apps/docs/content/_partials/kotlin_project_setup.mdx+++ b/apps/docs/content/_partials/kotlin_project_setup.mdx@@ -33,7 +33,8 @@ Now we are going to set up the database schema. You can just copy/paste the SQL</TabPanel></Tabs>-<$Partial path="api_settings.mdx" />+<$Partial path="api_settings.mdx" variables={{ "framework": "{{ .framework }}", "tab": "{{ .tab }}" }}+/>### Set up Google authenticationdiff --git a/apps/docs/content/_partials/metrics_access.mdx b/apps/docs/content/_partials/metrics_access.mdxindex bd16c90b348..89cc6cf2cb0 100644--- a/apps/docs/content/_partials/metrics_access.mdx+++ b/apps/docs/content/_partials/metrics_access.mdx@@ -23,7 +23,7 @@ className="rounded-lg border border-foreground/10 bg-surface-100 text-foreground3. Authenticate with HTTP Basic Auth:- **Username**: `service_role`- - **Password**: a service role secret (JWT) from [**Project Settings > JWT** (opens in a new tab)](/dashboard/project/_/settings/jwt) or any other Secret API key from [**Project Settings > API keys** (opens in a new tab)](/dashboard/project/_/settings/api-keys)+ - **Password**: a service role secret (JWT) from [**Project Settings > JWT**](/dashboard/project/_/settings/jwt) or any other Secret API key from [**Project Settings > API keys** (opens in a new tab)](/dashboard/project/_/settings/api-keys)Testing locally is as simple as running `curl` with your service role secret:@@ -34,7 +34,7 @@ className="rounded-lg border border-foreground/10 bg-surface-100 text-foregroundYou can provision long-lived automation tokens in two ways:- - Create an account access token once at [**Account Settings > Access Tokens (opens in a new tab)**](/dashboard/account/tokens) and reuse it wherever you configure observability tooling.+ - Create an account access token once at [**Account Settings > Access Tokens**](/dashboard/account/tokens) and reuse it wherever you configure observability tooling.- **Optional**: programmatically exchange an access token for project API keys via the [Management API ](/docs/reference/api/management-projects-api-keys-retrieve').```bashdiff --git a/apps/docs/content/_partials/project_setup.mdx b/apps/docs/content/_partials/project_setup.mdxindex 3548980bcea..f1601388316 100644--- a/apps/docs/content/_partials/project_setup.mdx+++ b/apps/docs/content/_partials/project_setup.mdx@@ -55,4 +55,5 @@ supabase migration new user_management_starter</TabPanel></Tabs>-<$Partial path="api_settings.mdx" />+<$Partial path="api_settings.mdx" variables={{ "framework": "{{ .framework }}", "tab": "{{ .tab }}" }}+/>diff --git a/apps/docs/content/guides/api/api-keys.mdx b/apps/docs/content/guides/api/api-keys.mdxindex 6b32efd7ac1..90ae6e7a757 100644--- a/apps/docs/content/guides/api/api-keys.mdx+++ b/apps/docs/content/guides/api/api-keys.mdx@@ -32,6 +32,21 @@ There are 4 types of API keys that can be used with Supabase:</Admonition>+<Admonition type="note" title="Changes to API keys">++Supabase is changing the way keys work to improve project security and developer experience. You can [read the full announcement](https://github.com/orgs/supabase/discussions/29260), but in the transition period, you can use both the current `anon` and `service_role` keys and the new publishable key with the form `sb_publishable_xxx` which will replace the older keys.++</Admonition>++## Where to find keys++You can find API keys in a couple of different places.++In most cases, you can get the correct key from [the Project's **Connect** dialog](/dashboard/project/_?showConnect=true), but if you want a specific key, you can find all keys in [the API Keys section of a Project's Settings page](/dashboard/project/_/settings/api-keys/):++- **For legacy keys**, copy the `anon` key for client-side operations and the `service_role` key for server-side operations from the **Legacy API Keys** tab.+- **For new keys**, open the **API Keys** tab, if you don't have a publishable key already, click **Create new API Keys**, and copy the value from the **Publishable key** section.+## `anon` and publishable keysThe `anon` and publishable keys secure the public components of your application. Public components run in environments where it is impossible to secure any secrets. These include:diff --git a/apps/docs/content/guides/api/creating-routes.mdx b/apps/docs/content/guides/api/creating-routes.mdxindex 2e987ce1074..7c84e6cc82e 100644--- a/apps/docs/content/guides/api/creating-routes.mdx+++ b/apps/docs/content/guides/api/creating-routes.mdx@@ -52,20 +52,26 @@ create tableEvery Supabase project has a unique API URL. Your API is secured behind an API gateway which requires an API Key for every request.-1. Go to the [Settings](/dashboard/project/_/settings/general) page in the Dashboard.-2. Click **API** in the sidebar.-3. Find your API `URL`, `anon`, and `service_role` keys on this page.+{/* TODO: Further consolidate partial */}-<video width="99%" muted playsInline controls={true}>- <source- src="https://xguihxuzqibwxjnimxev.supabase.co/storage/v1/object/public/videos/docs/api/api-url-and-key.mp4"- type="video/mp4"- />-</video>+To do this, you need to get the Project URL and key from [the project's **Connect** dialog](/dashboard/project/_?showConnect=true).++<Admonition type="note" title="Changes to API keys">++Supabase is changing the way keys work to improve project security and developer experience. You can [read the full announcement](https://github.com/orgs/supabase/discussions/29260), but in the transition period, you can use both the current `anon` and `service_role` keys and the new publishable key with the form `sb_publishable_xxx` which will replace the older keys.++In most cases, you can get the correct key from [the Project's **Connect** dialog](/dashboard/project/_?showConnect=true), but if you want a specific key, you can find all keys in [the API Keys section of a Project's Settings page](/dashboard/project/_/settings/api-keys/):++- **For legacy keys**, copy the `anon` key for client-side operations and the `service_role` key for server-side operations from the **Legacy API Keys** tab.+- **For new keys**, open the **API Keys** tab, if you don't have a publishable key already, click **Create new API Keys**, and copy the value from the **Publishable key** section.++</Admonition>++[Read the API keys docs](/docs/guides/api/api-keys) for a full explanation of all key types and their uses.The REST API is accessible through the URL `https://<project_ref>.supabase.co/rest/v1`-Both of these routes require the `anon` key to be passed through an `apikey` header.+Both of these routes require the key to be passed through an `apikey` header.## Using the APIdiff --git a/apps/docs/content/guides/auth/quickstarts/nextjs.mdx b/apps/docs/content/guides/auth/quickstarts/nextjs.mdxindex a65eb1adcaf..db5d05ee518 100644--- a/apps/docs/content/guides/auth/quickstarts/nextjs.mdx+++ b/apps/docs/content/guides/auth/quickstarts/nextjs.mdx@@ -52,9 +52,11 @@ hideToc: true<StepHikeCompact.Step step={3}><StepHikeCompact.Details title="Declare Supabase Environment Variables">- Rename `.env.example` to `.env.local` and populate with [your project's URL and Key](/dashboard/project/_/settings/api).+ Rename `.env.example` to `.env.local` and populate with your Supabase connection variables:- <$Partial path="api_settings_steps.mdx" />+ <ProjectConfigVariables variable="url" />+ <ProjectConfigVariables variable="publishable" />+ <ProjectConfigVariables variable="anon" /></StepHikeCompact.Details>@@ -65,6 +67,8 @@ hideToc: trueNEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=sb_publishable_... or anon key```+ <$Partial path="api_settings_steps.mdx" />+</StepHikeCompact.Code></StepHikeCompact.Step>diff --git a/apps/docs/content/guides/auth/quickstarts/react-native.mdx b/apps/docs/content/guides/auth/quickstarts/react-native.mdxindex 8e2eccc75b5..adf3ad3b5f9 100644--- a/apps/docs/content/guides/auth/quickstarts/react-native.mdx+++ b/apps/docs/content/guides/auth/quickstarts/react-native.mdx@@ -66,7 +66,9 @@ hideToc: trueCreate a helper file `lib/supabase.ts` that exports a Supabase client using your Project URL and key.- <$Partial path="api_settings_steps.mdx" />+ <ProjectConfigVariables variable="url" />+ <ProjectConfigVariables variable="publishable" />+ <ProjectConfigVariables variable="anon" /></StepHikeCompact.Details><StepHikeCompact.Code>@@ -106,6 +108,7 @@ hideToc: true})}```+ <$Partial path="api_settings_steps.mdx" /></StepHikeCompact.Code>diff --git a/apps/docs/content/guides/auth/quickstarts/react.mdx b/apps/docs/content/guides/auth/quickstarts/react.mdxindex dc82dd8626b..51c35b328fa 100644--- a/apps/docs/content/guides/auth/quickstarts/react.mdx+++ b/apps/docs/content/guides/auth/quickstarts/react.mdx@@ -63,9 +63,12 @@ hideToc: true<StepHikeCompact.Step step={4}><StepHikeCompact.Details title="Declare Supabase Environment Variables">- Create `.env.local` and populate with your project's URL and Key.+ Rename `.env.example` to `.env.local` and populate with your Supabase connection variables:++ <ProjectConfigVariables variable="url" />+ <ProjectConfigVariables variable="publishable" />+ <ProjectConfigVariables variable="anon" />- <$Partial path="api_settings_steps.mdx" /></StepHikeCompact.Details>@@ -75,6 +78,7 @@ hideToc: trueVITE_SUPABASE_URL=your-project-urlVITE_SUPABASE_PUBLISHABLE_DEFAULT_KEY=sb_publishable_... or anon key```+ <$Partial path="api_settings_steps.mdx" /></StepHikeCompact.Code>diff --git a/apps/docs/content/guides/auth/quickstarts/with-expo-react-native-social-auth.mdx b/apps/docs/content/guides/auth/quickstarts/with-expo-react-native-social-auth.mdxindex be42dd87c98..2f6e0a9206f 100644--- a/apps/docs/content/guides/auth/quickstarts/with-expo-react-native-social-auth.mdx+++ b/apps/docs/content/guides/auth/quickstarts/with-expo-react-native-social-auth.mdx@@ -16,7 +16,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "exporeactnative", "tab": "mobiles" }} />## Building the app@@ -832,7 +832,7 @@ For more information, follow the [Supabase Login with Apple](/docs/guides/auth/s</TabPanel><TabPanel id="react-apple-signin-auth" label="Web">-+#### PrerequisitesBefore proceeding, as per the mobile options you need an Apple Service ID. To obtain it you can follow the [Invertase Initial Setup Guide](https://github.com/invertase/react-native-apple-authentication/blob/main/docs/INITIAL_SETUP.md) and the [Invertase Android Setup Guide](https://github.com/invertase/react-native-apple-authentication/blob/main/docs/ANDROID_EXTRA.md) mentioned in the Invertase tab.diff --git a/apps/docs/content/guides/auth/server-side/creating-a-client.mdx b/apps/docs/content/guides/auth/server-side/creating-a-client.mdxindex e91b5d24c77..876c6436770 100644--- a/apps/docs/content/guides/auth/server-side/creating-a-client.mdx+++ b/apps/docs/content/guides/auth/server-side/creating-a-client.mdx@@ -45,6 +45,8 @@ Create a `.env.local` file in the project root directory. In the file, set the p<ProjectConfigVariables variable="publishable" /><ProjectConfigVariables variable="anon" />+<$Partial path="api_settings_steps.mdx" />+<Tabs scrollable size="small" type="underlined" defaultActiveId="nextjs" queryGroup="framework"><TabPanel id="nextjs" label="Next.js">diff --git a/apps/docs/content/guides/getting-started/quickstarts/flutter.mdx b/apps/docs/content/guides/getting-started/quickstarts/flutter.mdxindex b36cbd8f6c9..c984a73595e 100644--- a/apps/docs/content/guides/getting-started/quickstarts/flutter.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/flutter.mdx@@ -79,6 +79,8 @@ hideToc: true}```+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "flutter", "tab": "mobiles" }} />+</StepHikeCompact.Code></StepHikeCompact.Step>diff --git a/apps/docs/content/guides/getting-started/quickstarts/hono.mdx b/apps/docs/content/guides/getting-started/quickstarts/hono.mdxindex 7efe526cbd8..6dde6d2013f 100644--- a/apps/docs/content/guides/getting-started/quickstarts/hono.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/hono.mdx@@ -61,6 +61,9 @@ hideToc: truecp .env.example .env```+{/* TODO: Not ideal for frameworks that have no entry in Connect */}+<$Partial path="api_settings_steps.mdx" variables={{ "framework": "", "tab": "frameworks" }} />+</StepHikeCompact.Code></StepHikeCompact.Step>diff --git a/apps/docs/content/guides/getting-started/quickstarts/ios-swiftui.mdx b/apps/docs/content/guides/getting-started/quickstarts/ios-swiftui.mdxindex 2cda6ab6089..23114cd4437 100644--- a/apps/docs/content/guides/getting-started/quickstarts/ios-swiftui.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/ios-swiftui.mdx@@ -58,6 +58,8 @@ hideToc: true)```+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "swift", "tab": "mobiles" }} />+</StepHikeCompact.Code></StepHikeCompact.Step>diff --git a/apps/docs/content/guides/getting-started/quickstarts/kotlin.mdx b/apps/docs/content/guides/getting-started/quickstarts/kotlin.mdxindex 12711786238..bb919a5b8c9 100644--- a/apps/docs/content/guides/getting-started/quickstarts/kotlin.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/kotlin.mdx@@ -98,6 +98,8 @@ hideToc: true...```+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "androidkotlin", "tab": "mobiles" }} />+</StepHikeCompact.Code></StepHikeCompact.Step>diff --git a/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx b/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdxindex a3b42a6c9b6..50442f48e5c 100644--- a/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx@@ -58,6 +58,8 @@ hideToc: true</$CodeTabs>+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "nextjs", "tab": "frameworks" }} />+</StepHikeCompact.Code></StepHikeCompact.Step>diff --git a/apps/docs/content/guides/getting-started/quickstarts/nuxtjs.mdx b/apps/docs/content/guides/getting-started/quickstarts/nuxtjs.mdxindex 4a0c47a1e2b..9e47c024e2e 100644--- a/apps/docs/content/guides/getting-started/quickstarts/nuxtjs.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/nuxtjs.mdx@@ -84,6 +84,7 @@ hideToc: true```</$CodeTabs>+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "nuxt", "tab": "frameworks" }} /></StepHikeCompact.Code>diff --git a/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx b/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdxindex ffafeb5391d..a61018b11ef 100644--- a/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx@@ -74,6 +74,8 @@ hideToc: true</$CodeTabs>+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "react", "tab": "frameworks" }} />+</StepHikeCompact.Code></StepHikeCompact.Step>diff --git a/apps/docs/content/guides/getting-started/quickstarts/refine.mdx b/apps/docs/content/guides/getting-started/quickstarts/refine.mdxindex 9c0f9783a8a..18ca950ee58 100644--- a/apps/docs/content/guides/getting-started/quickstarts/refine.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/refine.mdx@@ -100,6 +100,7 @@ hideToc: true},});```+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "refine", "tab": "frameworks" }} /></StepHikeCompact.Code>diff --git a/apps/docs/content/guides/getting-started/quickstarts/solidjs.mdx b/apps/docs/content/guides/getting-started/quickstarts/solidjs.mdxindex a0d82752f2e..6043d57f985 100644--- a/apps/docs/content/guides/getting-started/quickstarts/solidjs.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/solidjs.mdx@@ -72,6 +72,8 @@ hideToc: true</$CodeTabs>+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "solidjs", "tab": "frameworks" }} />+</StepHikeCompact.Code></StepHikeCompact.Step>diff --git a/apps/docs/content/guides/getting-started/quickstarts/sveltekit.mdx b/apps/docs/content/guides/getting-started/quickstarts/sveltekit.mdxindex 071118d0d80..e0e064ec2b5 100644--- a/apps/docs/content/guides/getting-started/quickstarts/sveltekit.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/sveltekit.mdx@@ -72,6 +72,7 @@ hideToc: true```</$CodeTabs>+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "sveltekit", "tab": "frameworks" }} /></StepHikeCompact.Code>diff --git a/apps/docs/content/guides/getting-started/quickstarts/vue.mdx b/apps/docs/content/guides/getting-started/quickstarts/vue.mdxindex 0c73a9f5f65..4d4e311d397 100644--- a/apps/docs/content/guides/getting-started/quickstarts/vue.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/vue.mdx@@ -73,6 +73,7 @@ hideToc: true```</$CodeTabs>+ <$Partial path="api_settings_steps.mdx" variables={{ "framework": "vue", "tab": "frameworks" }} /></StepHikeCompact.Code>diff --git a/apps/docs/content/guides/getting-started/tutorials/with-angular.mdx b/apps/docs/content/guides/getting-started/tutorials/with-angular.mdxindex 3aa93feb375..fa99b87b179 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-angular.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-angular.mdx@@ -13,7 +13,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "ionicangular", "tab": "mobiles" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-expo-react-native.mdx b/apps/docs/content/guides/getting-started/tutorials/with-expo-react-native.mdxindex 6521e47307d..05fe900af0f 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-expo-react-native.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-expo-react-native.mdx@@ -14,7 +14,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "exporeactnative", "tab": "mobiles" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx b/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdxindex da29ecd8b2f..0ce422ecf8a 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx@@ -14,7 +14,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "flutter", "tab": "mobiles" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-ionic-angular.mdx b/apps/docs/content/guides/getting-started/tutorials/with-ionic-angular.mdxindex 90aa0eec33f..3ee88c2e33f 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-ionic-angular.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-ionic-angular.mdx@@ -13,7 +13,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "ionicangular", "tab": "mobiles" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-ionic-react.mdx b/apps/docs/content/guides/getting-started/tutorials/with-ionic-react.mdxindex 0885c96f44c..56ad0ee998f 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-ionic-react.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-ionic-react.mdx@@ -13,7 +13,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "ionicreact", "tab": "mobiles" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-ionic-vue.mdx b/apps/docs/content/guides/getting-started/tutorials/with-ionic-vue.mdxindex 4136c3ed5c2..ed80d020774 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-ionic-vue.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-ionic-vue.mdx@@ -13,7 +13,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "vuejs", "tab": "frameworks" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-kotlin.mdx b/apps/docs/content/guides/getting-started/tutorials/with-kotlin.mdxindex 25dc9824ffd..e04e38c96b6 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-kotlin.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-kotlin.mdx@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="kotlin_project_setup.mdx" />+<$Partial path="kotlin_project_setup.mdx" variables={{ "framework": "androidkotlin", "tab": "mobiles" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx b/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdxindex ef89210d43b..e34045aac65 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx@@ -14,7 +14,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "nextjs", "tab": "frameworks" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-nuxt-3.mdx b/apps/docs/content/guides/getting-started/tutorials/with-nuxt-3.mdxindex d4d1c793444..88868969d72 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-nuxt-3.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-nuxt-3.mdx@@ -14,7 +14,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "nuxt", "tab": "frameworks" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-react.mdx b/apps/docs/content/guides/getting-started/tutorials/with-react.mdxindex a877837bfa8..abb433c92e7 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-react.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-react.mdx@@ -14,7 +14,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" variables={{ "framework": "React" }} />+<$Partial path="project_setup.mdx" variables={{ "framework": "react", "tab": "frameworks" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-redwoodjs.mdx b/apps/docs/content/guides/getting-started/tutorials/with-redwoodjs.mdxindex 8518040eac8..a071af17097 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-redwoodjs.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-redwoodjs.mdx@@ -39,7 +39,7 @@ Instead, we'll rely on the Supabase client to do some of the work on the **`web`That means you will want to refrain from running any `yarn rw prisma migrate` commands and also double check your build commands on deployment to ensure Prisma won't reset your database. Prisma currently doesn't support cross-schema foreign keys, so introspecting the schema fails dueto how your Supabase `public` schema references the `auth.users`.-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "", "tab": "frameworks" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-refine.mdx b/apps/docs/content/guides/getting-started/tutorials/with-refine.mdxindex ea5e7060901..2f7b929dd28 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-refine.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-refine.mdx@@ -25,7 +25,7 @@ It is possible to customize the `authProvider` for Supabase and as we'll see bel</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "refine", "tab": "frameworks" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-solidjs.mdx b/apps/docs/content/guides/getting-started/tutorials/with-solidjs.mdxindex 93245963294..6eef0ff067b 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-solidjs.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-solidjs.mdx@@ -13,7 +13,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "solidjs", "tab": "frameworks" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx b/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdxindex 026815a95ac..15c69b1c2fe 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx@@ -13,7 +13,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "sveltekit", "tab": "frameworks" }} />## Building the app@@ -73,7 +73,7 @@ meta="name=src/lib/Auth.svelte"After a user is signed in, allow them to edit their profile details and manage their account.Create a new component for that called `Account.svelte`.-<$CodeSample+<$CodeSamplepath="/user-management/svelte-user-management/src/lib/Account.svelte"lines={[[1, 4], [7, 11], [14, 33], [34,53], [55,73], [75,-1]]}meta="src/lib/Account.svelte"@@ -121,7 +121,7 @@ meta="name=src/lib/Avatar.svelte"And then you can add the widget to the Account page:-<$CodeSample+<$CodeSamplepath="/user-management/svelte-user-management/src/lib/Account.svelte"lines={[[1,1], [5,5], [71,73], [74,74], [92,-1]]}meta="src/lib/Account.svelte"diff --git a/apps/docs/content/guides/getting-started/tutorials/with-sveltekit.mdx b/apps/docs/content/guides/getting-started/tutorials/with-sveltekit.mdxindex ccdc1bcdf51..f83a941e777 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-sveltekit.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-sveltekit.mdx@@ -13,7 +13,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "sveltekit", "tab": "frameworks" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-swift.mdx b/apps/docs/content/guides/getting-started/tutorials/with-swift.mdxindex da2508ad2b0..89177e8ea8b 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-swift.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-swift.mdx@@ -13,7 +13,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "swift", "tab": "mobiles" }} />## Building the appdiff --git a/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx b/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdxindex 1d5185fd931..12e15b09d99 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx@@ -14,7 +14,7 @@ If you get stuck while working through this guide, refer to the [full example on</Admonition>-<$Partial path="project_setup.mdx" />+<$Partial path="project_setup.mdx" variables={{ "framework": "vuejs", "tab": "frameworks" }} />## Building the appdiff --git a/apps/docs/content/guides/realtime/broadcast.mdx b/apps/docs/content/guides/realtime/broadcast.mdxindex 1623beb441b..34f35fee7d9 100644--- a/apps/docs/content/guides/realtime/broadcast.mdx+++ b/apps/docs/content/guides/realtime/broadcast.mdx@@ -33,7 +33,20 @@ You can use the Supabase client libraries to receive Broadcast messages.### Initialize the client-Go to your Supabase project's [API Settings](/dashboard/project/_/settings/api) and grab the `URL` and `anon` public API key.+{/* TODO: Further consolidate partial */}++Get the Project URL and key from [the project's **Connect** dialog](/dashboard/project/_?showConnect=true).++<Admonition type="note" title="Changes to API keys">++Supabase is changing the way keys work to improve project security and developer experience. You can [read the full announcement](https://github.com/orgs/supabase/discussions/29260), but in the transition period, you can use both the current `anon` and `service_role` keys and the new publishable key with the form `sb_publishable_xxx` which will replace the older keys.++In most cases, you can get the correct key from [the Project's **Connect** dialog](/dashboard/project/_?showConnect=true), but if you want a specific key, you can find all keys in [the API Keys section of a Project's Settings page](/dashboard/project/_/settings/api-keys/):++- **For legacy keys**, copy the `anon` key for client-side operations and the `service_role` key for server-side operations from the **Legacy API Keys** tab.+- **For new keys**, open the **API Keys** tab, if you don't have a publishable key already, click **Create new API Keys**, and copy the value from the **Publishable key** section.++</Admonition><Tabsscrollablediff --git a/apps/docs/content/guides/realtime/presence.mdx b/apps/docs/content/guides/realtime/presence.mdxindex f99eedb4f4f..dae2120972f 100644--- a/apps/docs/content/guides/realtime/presence.mdx+++ b/apps/docs/content/guides/realtime/presence.mdx@@ -31,7 +31,20 @@ The complete presence state returned by `presenceState()` looks like this:### Initialize the client-Go to your Supabase project's [API Settings](/dashboard/project/_/settings/api) and grab the `URL` and `anon` public API key.+{/* TODO: Further consolidate partial */}++Get the Project URL and key from [the project's **Connect** dialog](/dashboard/project/_?showConnect=true).++<Admonition type="note" title="Changes to API keys">++Supabase is changing the way keys work to improve project security and developer experience. You can [read the full announcement](https://github.com/orgs/supabase/discussions/29260), but in the transition period, you can use both the current `anon` and `service_role` keys and the new publishable key with the form `sb_publishable_xxx` which will replace the older keys.++In most cases, you can get the correct key from [the Project's **Connect** dialog](/dashboard/project/_?showConnect=true), but if you want a specific key, you can find all keys in [the API Keys section of a Project's Settings page](/dashboard/project/_/settings/api-keys/):++- **For legacy keys**, copy the `anon` key for client-side operations and the `service_role` key for server-side operations from the **Legacy API Keys** tab.+- **For new keys**, open the **API Keys** tab, if you don't have a publishable key already, click **Create new API Keys**, and copy the value from the **Publishable key** section.++</Admonition><Tabsscrollable