mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +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