spotify-refresh

2.0.3 • Public • Published

Spotify-refresh

Use this module to obtain a new refresh and accessToken from spotfiy

Example

var refresh = require('spotify-refresh')
 
refresh(refreshToken, clientID, clientSecret, function (err, res, body) { 
  if (err) return
  body = json.parse(body)
  console.log(JSON.stringify(body)  
})

Which will log something like this

}
   "access_token": "NgCXRK...MzYjw",
   "token_type": "Bearer",
   "expires_in": 3600,
   "refresh_token": "NgAagA...Um_SHo"
}

Package Sidebar

Install

npm i spotify-refresh

Weekly Downloads

7

Version

2.0.3

License

MIT

Last publish

Collaborators

  • faiqyou