mirror of
https://gitbruv.vercel.app/api/git/bruv/gitbruv.git
synced 2025-12-20 23:24:09 +01:00
9 lines
215 B
TypeScript
9 lines
215 B
TypeScript
import { auth } from "@/lib/auth";
|
|
import { headers } from "next/headers";
|
|
|
|
export async function getSession() {
|
|
const session = await auth.api.getSession({
|
|
headers: await headers(),
|
|
});
|
|
return session;
|
|
}
|