Initial commit

This commit is contained in:
Developer
2026-02-06 21:44:04 -06:00
commit f85e93c7a6
151 changed files with 22916 additions and 0 deletions

11
lib/auth/session.ts Normal file
View File

@@ -0,0 +1,11 @@
import { cookies } from "next/headers";
import { verifySession } from "./jwt";
export const SESSION_COOKIE = "ep_session";
export async function getSession() {
const cookieStore = await cookies();
const c = cookieStore.get(SESSION_COOKIE)?.value;
if (!c) return null;
return await verifySession(c);
}