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

This commit is contained in:
Kaleab S. Melkie committed 2022-11-19 00:48:26 +03:00
1 parent c52a877c4b
commit 7b29cedfdd
1 file changed
+6 -4
@@ -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',
},
})
}
```