mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-03-30 14:27:15 +00:00
Made setToken async
This commit is contained in:
@@ -237,10 +237,10 @@ export async function refreshToken(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function setSpotifyToken(options: SpotifyDataOptions) {
|
||||
export async function setSpotifyToken(options: SpotifyDataOptions) {
|
||||
spotifyData = options;
|
||||
spotifyData.file = false;
|
||||
refreshToken();
|
||||
await refreshToken();
|
||||
}
|
||||
|
||||
export { SpotifyTrack, SpotifyAlbum, SpotifyPlaylist };
|
||||
|
||||
Reference in New Issue
Block a user