Files
deer-flow/frontend/src/server/better-auth/server.ts
2026-01-14 09:50:26 +08:00

8 lines
198 B
TypeScript

import { auth } from ".";
import { headers } from "next/headers";
import { cache } from "react";
export const getSession = cache(async () =>
auth.api.getSession({ headers: await headers() }),
);