import { NextResponse } from "next/server"; import { cookies } from "next/headers"; export async function GET() { const cookieStore = cookies(); const credential = JSON.parse(cookieStore.get("credential")?.value || ""); return NextResponse.json({ credential }); }