Authorization method

This commit is contained in:
James Barnsley
2017-06-12 09:24:57 +12:00
parent b3acf522f3
commit 0edc2ecea4
2 changed files with 22 additions and 58 deletions

View File

@ -111,7 +111,7 @@ function refreshToken( dispatch, getState ){
$.ajax({
method: 'GET',
url: '//jamesbarnsley.co.nz/auth.php?action=refresh&refresh_token='+getState().spotify.refresh_token,
url: getState().config.authorization_url+'?action=refresh&refresh_token='+getState().spotify.refresh_token,
dataType: "json",
timeout: 10000
})