Skip to content

Commit cb8e600

Browse files
authored
fix: add organization_slug to OAuth app (supabase#37546)
1 parent fbef43f commit cb8e600

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/docs/content/guides/integrations/build-a-supabase-integration.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ Within your app's UI, redirect the user to [`https://api.supabase.com/v1/oauth/a
3333
- `redirect_uri`: The URL where Supabase will redirect the user to after providing consent.
3434
- `response_type`: Set this to `code`.
3535
- `state`: Information about the state of your app. Note that `redirect_uri` and `state` together cannot exceed 4kB in size.
36-
- (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.
37-
- [deprecated] `scope`: Scopes are configured when you create your OAuth app. Read the [docs](/docs/guides/platform/oauth-apps/oauth-scopes) for more details.
36+
- `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.
37+
- [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.
38+
- [Deprecated] `scope`: Scopes are configured when you create your OAuth app. Read the [docs](/docs/guides/platform/oauth-apps/oauth-scopes) for more details.
3839

3940
```ts
4041
router.get('/connect-supabase/login', async (ctx) => {

0 commit comments

Comments
 (0)