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:
@@ -2,7 +2,6 @@ import { cookies } from "next/headers";
|
||||
import { SignJWT, jwtVerify } from "jose";
|
||||
|
||||
const SECRET = new TextEncoder().encode(process.env.NEXTAUTH_SECRET || "dev-secret");
|
||||
const COOKIE = "admin_session";
|
||||
|
||||
export async function crearSesionAdmin(adminId: string): Promise<string> {
|
||||
const token = await new SignJWT({ sub: adminId, role: "admin" })
|
||||
|
||||
Reference in New Issue
Block a user