mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 14:39:29 +02:00
10 lines
234 B
TypeScript
10 lines
234 B
TypeScript
import { cookies } from "next/headers";
|
|
|
|
export function authCookieHeader() {
|
|
const sessionId = cookies().get("session")?.value ?? null;
|
|
return {
|
|
headers: {
|
|
Cookie: `session=${sessionId}`
|
|
}
|
|
}
|
|
}
|