Skip to content

Commit

Permalink
fix(auth): unhandled promise rejection caused by failed auth refresh (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpauwels authored and silasbw committed Sep 6, 2018
1 parent c6810de commit 2e3ae71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ class Request {
if (err) return cb(err);
return cb(null, { statusCode: res.statusCode, body });
});
});
})
.catch(err => cb(err));
}

return cb(null, { statusCode: res.statusCode, body: body });
Expand Down

0 comments on commit 2e3ae71

Please sign in to comment.