mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on statistics
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import {createAuthClient} from "better-auth/react";
|
||||
|
||||
import {adminClient, organizationClient} from "better-auth/client/plugins";
|
||||
import {adminClient, inferAdditionalFields, organizationClient} from "better-auth/client/plugins";
|
||||
import {env} from "@/env.mjs";
|
||||
import {ac, user, admin as adminRole, pending, superadmin, orgAdmin, orgMember, orgOwner} from "./permissions";
|
||||
import {auth} from "@/lib/auth/auth";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: env.NEXT_PUBLIC_PROJECT_URL,
|
||||
@@ -24,7 +25,9 @@ export const authClient = createAuthClient({
|
||||
superadmin,
|
||||
},
|
||||
}),
|
||||
inferAdditionalFields<typeof auth>(),
|
||||
],
|
||||
|
||||
});
|
||||
|
||||
export const {signIn, signOut, signUp, useSession, listAccounts, admin} = authClient;
|
||||
|
||||
Reference in New Issue
Block a user