Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs(auth): fix keycloak scopes for js client v2

Kaleab S. Melkie7b29cedfddf2
diff --git a/apps/docs/pages/guides/auth/auth-keycloak.mdx b/apps/docs/pages/guides/auth/auth-keycloak.mdx
index 8bd1d4726a4..b0078e6cfae 100644
--- a/apps/docs/pages/guides/auth/auth-keycloak.mdx
+++ b/apps/docs/pages/guides/auth/auth-keycloak.mdx
@@ -65,10 +65,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/aut
```js
async function signInWithKeycloak() {
- const { data, error } = await supabase.auth.signInWithOAuth(
- {provider: 'keycloak'},
- {scopes: 'openid'},
- )
+ const { data, error } = await supabase.auth.signInWithOAuth({
+ provider: 'keycloak',
+ options: {
+ scopes: 'openid',
+ },
+ })
}
```