Open philawsophizing opened 7 years ago
Not 100% but I think we encountered this. Had to parse the body before saying !body.access token, otherwise it's not checking it correctly.
Request(options, (error, response, body) => { if (error) return reply(error); if (!body.access_token) { return reply('Something went wrong - no access token!'); }
mmm maybe not because you set json to true..
Yea json: true handles this :)
json: true
Not 100% but I think we encountered this. Had to parse the body before saying !body.access token, otherwise it's not checking it correctly.