fix: remove unused COOKIE constant to fix ESLint build error

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Beldor
2026-06-18 12:57:48 -03:00
parent 1383add1b5
commit 600f80ff7f
-1
View File
@@ -2,7 +2,6 @@ import { cookies } from "next/headers";
import { SignJWT, jwtVerify } from "jose"; import { SignJWT, jwtVerify } from "jose";
const SECRET = new TextEncoder().encode(process.env.NEXTAUTH_SECRET || "dev-secret"); const SECRET = new TextEncoder().encode(process.env.NEXTAUTH_SECRET || "dev-secret");
const COOKIE = "admin_session";
export async function crearSesionAdmin(adminId: string): Promise<string> { export async function crearSesionAdmin(adminId: string): Promise<string> {
const token = await new SignJWT({ sub: adminId, role: "admin" }) const token = await new SignJWT({ sub: adminId, role: "admin" })