- Spotify playlist, library, album and artist browsing with in-app playback - Song, playlist and album downloads via spotdl with YouTube and Bandcamp fallbacks - Electron desktop app (castLabs Widevine) with a permanent sidebar layout - Linux and Windows packaging scripts
12 lines
593 B
TypeScript
12 lines
593 B
TypeScript
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 });
|
|
}
|