diff --git a/docs/content/docs/plugins/organization.mdx b/docs/content/docs/plugins/organization.mdx index d7aef44f62..de2ceb7b24 100644 --- a/docs/content/docs/plugins/organization.mdx +++ b/docs/content/docs/plugins/organization.mdx @@ -647,9 +647,9 @@ type setActiveOrganization = { To automatically set an active organization when a session is created, you can use [database hooks](/docs/concepts/database#database-hooks). You'll need to implement logic to determine which organization to set as the initial active organization. ```ts title="auth.ts" -export const auth = betterAuth({ - import { betterAuth } from "better-auth"; +import { betterAuth } from "better-auth"; +export const auth = betterAuth({ databaseHooks: { session: { create: {