mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-21 15:36:48 +00:00
9 lines
199 B
TypeScript
9 lines
199 B
TypeScript
import { headers } from "next/headers";
|
|
import { cache } from "react";
|
|
|
|
import { auth } from ".";
|
|
|
|
export const getSession = cache(async () =>
|
|
auth.api.getSession({ headers: await headers() }),
|
|
);
|