Download frontend/src/server/session.ts from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 182 Bytes
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/frontend/src/server/session.ts
- Command line
-
hf download hf://spaces/new-arc/vector/frontend/src/server/session.ts
-
curl -L -o session.ts https://huggingface.co/spaces/new-arc/vector/resolve/main/frontend/src/server/session.ts
182 Bytes
| import { headers } from "next/headers"; | |
| import { auth } from "@/lib/auth"; | |
| export async function getServerSession() { | |
| return auth.api.getSession({ headers: await headers() }); | |
| } | |