From cb8e6008fa10c4d577e93d6a2d001a8d5803a488 Mon Sep 17 00:00:00 2001 From: Wen Bo Xie Date: Wed, 30 Jul 2025 22:00:08 -0400 Subject: [PATCH] fix: add organization_slug to OAuth app (#37546) --- .../guides/integrations/build-a-supabase-integration.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/guides/integrations/build-a-supabase-integration.mdx b/apps/docs/content/guides/integrations/build-a-supabase-integration.mdx index 11207e4dd2cd9..f70007202fa38 100644 --- a/apps/docs/content/guides/integrations/build-a-supabase-integration.mdx +++ b/apps/docs/content/guides/integrations/build-a-supabase-integration.mdx @@ -33,8 +33,9 @@ Within your app's UI, redirect the user to [`https://api.supabase.com/v1/oauth/a - `redirect_uri`: The URL where Supabase will redirect the user to after providing consent. - `response_type`: Set this to `code`. - `state`: Information about the state of your app. Note that `redirect_uri` and `state` together cannot exceed 4kB in size. -- (Recommended) PKCE: We strongly recommend using the PKCE flow for increased security. Generate a random value before taking the user to the authorize endpoint. This value is called code verifier. Hash it with SHA256 and include it as the `code_challenge` parameter, while setting `code_challenge_method` to `S256`. In the next step, you would need to provide the code verifier to get the first access and refresh token. -- [deprecated] `scope`: Scopes are configured when you create your OAuth app. Read the [docs](/docs/guides/platform/oauth-apps/oauth-scopes) for more details. +- `organization_slug`: The slug of the organization you want to connect to. This is optional, but if provided, it will pre-select the organization for the user. +- [Recommended] PKCE: We strongly recommend using the PKCE flow for increased security. Generate a random value before taking the user to the authorize endpoint. This value is called code verifier. Hash it with SHA256 and include it as the `code_challenge` parameter, while setting `code_challenge_method` to `S256`. In the next step, you would need to provide the code verifier to get the first access and refresh token. +- [Deprecated] `scope`: Scopes are configured when you create your OAuth app. Read the [docs](/docs/guides/platform/oauth-apps/oauth-scopes) for more details. ```ts router.get('/connect-supabase/login', async (ctx) => {