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(); }); });