diff --git a/src/Adapters/Auth/spotify.js b/src/Adapters/Auth/spotify.js index c3304c6348..674c62d5c1 100644 --- a/src/Adapters/Auth/spotify.js +++ b/src/Adapters/Auth/spotify.js @@ -111,7 +111,8 @@ class SpotifyAdapter extends BaseAuthCodeAdapter { throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Spotify API request failed.'); } - return response.json(); + let responseJson = await response.json(); + return responseJson.access_token; } }