initial commit

This commit is contained in:
Ivan Rezchikov
2026-06-18 22:37:03 +03:00
parent d5d42a2141
commit 6c89f21039
30 changed files with 1506 additions and 95 deletions
+9
View File
@@ -0,0 +1,9 @@
"use server";
import { cookies } from "next/headers";
import { cookieConfig } from "./cookieConfig";
export async function setSessionCookie(token: string) {
const store = await cookies();
store.set("session", token, { ...cookieConfig, path: "/", maxAge: parseInt(process.env.SESSION_MAX_AGE!) });
}