mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-18 03:54:46 +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() }),
|
||
|
|
);
|