diff --git a/demo/nextjs/lib/auth.ts b/demo/nextjs/lib/auth.ts index b57ca7d5..131ae9a9 100644 --- a/demo/nextjs/lib/auth.ts +++ b/demo/nextjs/lib/auth.ts @@ -120,3 +120,6 @@ export const auth = betterAuth({ multiSession(), ], }); + + +auth.api.changeEmail \ No newline at end of file diff --git a/docs/content/docs/plugins/organization.mdx b/docs/content/docs/plugins/organization.mdx index 5192df63..4ab608b6 100644 --- a/docs/content/docs/plugins/organization.mdx +++ b/docs/content/docs/plugins/organization.mdx @@ -74,16 +74,7 @@ To create an organization, you need to provide: - `logo`: The logo of the organization. (Optional) ```ts title="client.ts" -import { createAuthClient } from "better-auth/client" -import { organizationClient } from "better-auth/client/plugins" - -const client = createAuthClient({ - plugins: [ // [!code highlight] - organizationClient() // [!code highlight] - ] // [!code highlight] -}) -// ---cut--- -const data = await client.organization.create({ +await client.organization.create({ name: "My Organization", slug: "my-org", logo: "https://example.com/logo.png"