From 28a0023d4235a28ed6be399dfe5a5fb369e40f9f Mon Sep 17 00:00:00 2001 From: Christoph Rohrer Date: Mon, 1 May 2017 23:05:49 +0200 Subject: [PATCH] fixes accessToken renewal --- spotifyOAuth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/spotifyOAuth.js b/spotifyOAuth.js index de7dd31..17ca696 100644 --- a/spotifyOAuth.js +++ b/spotifyOAuth.js @@ -109,6 +109,7 @@ function getToken(code, refresh){ var responseJson = JSON.parse(body); writeAccessToken(responseJson.access_token); writeRefreshToken(responseJson.refresh_token); + spotifyOAuth.accessToken = responseJson.access_token; require('./main').start(); }); });