mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
docs: remove uncessary code block
This commit is contained in:
@@ -120,3 +120,6 @@ export const auth = betterAuth({
|
||||
multiSession(),
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
auth.api.changeEmail
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user