From 12604fe17ec4660e2074249f579f8d8308112882 Mon Sep 17 00:00:00 2001 From: GitPusher99 Date: Thu, 28 Mar 2024 15:57:35 +0800 Subject: [PATCH] feat: remove useless code --- src/lib/SunoApi.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib/SunoApi.ts b/src/lib/SunoApi.ts index ddbca64..d444dfc 100644 --- a/src/lib/SunoApi.ts +++ b/src/lib/SunoApi.ts @@ -168,7 +168,6 @@ class SunoApi { make_instrumental?: boolean, wait_audio: boolean = false ): Promise { - const authToken = await this.getAuthToken(); const payload: any = { make_instrumental: make_instrumental == true, mv: "chirp-v3-0", @@ -268,7 +267,6 @@ class SunoApi { * @returns A promise that resolves to an array of AudioInfo objects. */ public async get(songIds?: string[]): Promise { - const authToken = await this.getAuthToken(); let url = `${SunoApi.BASE_URL}/api/feed/`; if (songIds) { url = `${url}?ids=${songIds.join(',')}`; @@ -299,7 +297,6 @@ class SunoApi { } public async get_credits(): Promise { - const authToken = await this.getAuthToken(); const response = await this.client.get(`${SunoApi.BASE_URL}/api/billing/info/`); return { credits_left: response.data.total_credits_left,