mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-19 19:44:29 +00:00
- Introduced an ImpersonationBar component for admin users to impersonate other users, enhancing user management capabilities. - Updated the ProfileForm to include an option for allowing impersonation, with a description for clarity. - Modified the DashboardLayout to conditionally display the impersonation bar based on user roles and cloud settings. - Added database schema changes to support the new impersonation feature, including a new column for allowImpersonation in the user table. - Implemented necessary API updates to handle impersonation actions and user data retrieval.
16 lines
518 B
TypeScript
16 lines
518 B
TypeScript
import { organizationClient } from "better-auth/client/plugins";
|
|
import { twoFactorClient } from "better-auth/client/plugins";
|
|
import { apiKeyClient } from "better-auth/client/plugins";
|
|
import { adminClient } from "better-auth/client/plugins";
|
|
import { createAuthClient } from "better-auth/react";
|
|
|
|
export const authClient = createAuthClient({
|
|
// baseURL: "http://localhost:3000", // the base url of your auth server
|
|
plugins: [
|
|
organizationClient(),
|
|
twoFactorClient(),
|
|
apiKeyClient(),
|
|
adminClient(),
|
|
],
|
|
});
|