From e8c85aa57d7acab7b0ef865d663991830e080c13 Mon Sep 17 00:00:00 2001 From: Christoph Rohrer Date: Thu, 9 Jun 2016 19:49:51 +0200 Subject: [PATCH] fixes oAuth error #4 --- spotifyOAuth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spotifyOAuth.js b/spotifyOAuth.js index 0ce7951..0669545 100644 --- a/spotifyOAuth.js +++ b/spotifyOAuth.js @@ -36,7 +36,7 @@ var spotifyOAuth = { getToken(undefined, refreshToken); } catch (e){ console.log('no refreshToken found'); - oAuth.authenticate(); + spotifyOAuth.authenticate(); } }, getAccessToken: function(){ @@ -47,7 +47,7 @@ var spotifyOAuth = { return spotifyOAuth.accessToken; } catch (e){ console.log('no accessToken found'); - oAuth.refresh(); + spotifyOAuth.refresh(); } return false; }