import superjson from "superjson"; import { clearCookie } from "../helpers/spotifyServer"; export async function handle() { const headers = new Headers({ "Content-Type": "application/json", "Cache-Control": "no-store" }); headers.append("Set-Cookie", clearCookie("spotirip_spotify_access")); headers.append("Set-Cookie", clearCookie("spotirip_spotify_refresh")); headers.append("Set-Cookie", clearCookie("spotirip_spotify_expires")); headers.append("Set-Cookie", clearCookie("spotirip_oauth_state")); return new Response(superjson.stringify({ connected: false }), { headers }); }