mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
docs: remove uncessary code block
This commit is contained in:
@@ -120,3 +120,6 @@ export const auth = betterAuth({
|
|||||||
multiSession(),
|
multiSession(),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
auth.api.changeEmail
|
||||||
@@ -74,16 +74,7 @@ To create an organization, you need to provide:
|
|||||||
- `logo`: The logo of the organization. (Optional)
|
- `logo`: The logo of the organization. (Optional)
|
||||||
|
|
||||||
```ts title="client.ts"
|
```ts title="client.ts"
|
||||||
import { createAuthClient } from "better-auth/client"
|
await client.organization.create({
|
||||||
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({
|
|
||||||
name: "My Organization",
|
name: "My Organization",
|
||||||
slug: "my-org",
|
slug: "my-org",
|
||||||
logo: "https://example.com/logo.png"
|
logo: "https://example.com/logo.png"
|
||||||
|
|||||||
Reference in New Issue
Block a user