mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
Merge pull request #362 from DrowningWhale/master
This commit is contained in:
commit
fe1717788f
|
@ -33,6 +33,6 @@ export default class ThirdParty {
|
||||||
const auth = await this.spotify.clientCredentialsGrant();
|
const auth = await this.spotify.clientCredentialsGrant();
|
||||||
this.spotify.setAccessToken(auth.body.access_token);
|
this.spotify.setAccessToken(auth.body.access_token);
|
||||||
|
|
||||||
this.spotifyTokenTimerId = setTimeout(this.refreshSpotifyToken, (auth.body.expires_in / 2) * 1000);
|
this.spotifyTokenTimerId = setTimeout(this.refreshSpotifyToken.bind(this), (auth.body.expires_in / 2) * 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue