mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 06:12:14 +08:00
8 lines
198 B
TypeScript
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() }),
|
|
);
|