diff --git a/docs/components/theme-toggler.tsx b/docs/components/theme-toggler.tsx index 50d157db8b..c6bc98b3c5 100644 --- a/docs/components/theme-toggler.tsx +++ b/docs/components/theme-toggler.tsx @@ -26,14 +26,23 @@ export function ThemeToggle() { Toggle theme - - setTheme("light")}> + + setTheme("light")} + > Light - setTheme("dark")}> + setTheme("dark")} + > Dark - setTheme("system")}> + setTheme("system")} + > System diff --git a/docs/content/docs/plugins/sso.mdx b/docs/content/docs/plugins/sso.mdx index f6baf880ae..9c5bff7586 100644 --- a/docs/content/docs/plugins/sso.mdx +++ b/docs/content/docs/plugins/sso.mdx @@ -17,7 +17,7 @@ Single Sign-On (SSO) allows users to authenticate with multiple applications usi ### Add Plugin to the server - ```ts title="auth.ts" + ```ts title="auth.ts" import { betterAuth } from "better-auth" import { sso } from "better-auth/plugins/sso"; @@ -49,11 +49,11 @@ Single Sign-On (SSO) allows users to authenticate with multiple applications usi ### Add the client plugin - + ```ts title="auth-client.ts" import { createAuthClient } from "better-auth/client" import { ssoClient } from "better-auth/client/plugins" - + const authClient = createAuthClient({ plugins: [ // [!code highlight] ssoClient() // [!code highlight] @@ -145,6 +145,7 @@ const res = await authClient.signIn.sso({ or you can specify the domain: + ``` const res = await authClient.signIn.sso({ domain: "example.com",