inlight-media / node-forecast-api

21 stars 8 forks source link

Better handling of expired tokens #6

Open agrimm opened 6 years ago

agrimm commented 6 years ago

If I make a request using an expired token, such as a call to Forecast.prototype.people, it gets back { reason: 'expired-token', account_id: '246010' }, and then sends a callback of callback(null, undefined).

Is there some way I could ask forecast-api for the reason value?