feat: custom session response (#579)

This commit is contained in:
Bereket Engida
2024-11-19 21:16:23 +03:00
committed by GitHub
parent a3f0793d68
commit f5f60a23e8
28 changed files with 425 additions and 95 deletions

View File

@@ -0,0 +1,9 @@
import { BetterAuthClientPlugin } from "better-auth";
import { customSession } from "./custom-session";
export const customSessionClient = () => {
return {
id: "session-client",
$InferServerPlugin: {} as ReturnType<typeof customSession>,
} satisfies BetterAuthClientPlugin;
};