mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-08 04:19:25 +00:00
feat: custom session response (#579)
This commit is contained in:
9
demo/nextjs/lib/auth/plugins/session-client.ts
Normal file
9
demo/nextjs/lib/auth/plugins/session-client.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user