added dash client
This commit is contained in:
4
bun.lock
4
bun.lock
@@ -49,7 +49,7 @@
|
||||
"@aws-sdk/client-scheduler": "^3.958.0",
|
||||
"@aws-sdk/client-sqs": "^3.926.0",
|
||||
"@axiomhq/pino": "^1.3.1",
|
||||
"@better-auth/dash": "^0.1.6",
|
||||
"@better-auth/dash": "catalog:",
|
||||
"@clickhouse/client": "^1.11.2",
|
||||
"@date-fns/tz": "^1.2.0",
|
||||
"@date-fns/utc": "^2.1.0",
|
||||
@@ -191,6 +191,7 @@
|
||||
"@ai-sdk/react": "^3.0.25",
|
||||
"@amplitude/unified": "^1.0.0-beta.9",
|
||||
"@autumn/shared": "workspace:*",
|
||||
"@better-auth/dash": "catalog:",
|
||||
"@better-auth/stripe": "^1.2.12",
|
||||
"@date-fns/utc": "^2.1.1",
|
||||
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
||||
@@ -305,6 +306,7 @@
|
||||
},
|
||||
},
|
||||
"catalog": {
|
||||
"@better-auth/dash": "0.1.6",
|
||||
"@clickhouse/client": "1.11.2",
|
||||
"@date-fns/utc": "2.1.0",
|
||||
"@sentry/bun": "10.25.0",
|
||||
|
||||
@@ -1,10 +1,19 @@
|
||||
import { dashClient } from "@better-auth/dash/client";
|
||||
import {
|
||||
adminClient,
|
||||
emailOTPClient,
|
||||
organizationClient,
|
||||
} from "better-auth/client/plugins";
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
import { adminClient, emailOTPClient } from "better-auth/client/plugins";
|
||||
import { organizationClient } from "better-auth/client/plugins";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: import.meta.env.VITE_BACKEND_URL,
|
||||
plugins: [emailOTPClient(), organizationClient(), adminClient()],
|
||||
plugins: [
|
||||
emailOTPClient(),
|
||||
organizationClient(),
|
||||
adminClient(),
|
||||
dashClient(),
|
||||
],
|
||||
});
|
||||
|
||||
export const {
|
||||
|
||||
Reference in New Issue
Block a user