• Removes authentication tokens from storage

    Returns boolean

    Boolean indicating operation success

    export function clearTokens(): boolean {
    try {
    const tokenFilePath = getTokenFilePath();

    if (fs.existsSync(tokenFilePath)) {
    fs.unlinkSync(tokenFilePath);

    saveLog("Spotify tokens cleared from disk", "INFO");
    return true;
    }
    return false;
    } catch (error) {
    saveLog(`Failed to clear tokens: ${error}`, "ERROR");
    return false;
    }
    }