aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/services/third-party.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/third-party.ts b/src/services/third-party.ts
index 6eaf644..0924b80 100644
--- a/src/services/third-party.ts
+++ b/src/services/third-party.ts
@@ -33,6 +33,6 @@ export default class ThirdParty {
const auth = await this.spotify.clientCredentialsGrant();
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);
}
}