emartech / suite-js-sdk

Simple Javascript wrapper for the Emarsys API
MIT License
9 stars 35 forks source link

Request authenticator wraps any error to an UnauthorizedError #99

Closed gabor-balla-emarsys closed 8 years ago

gabor-balla-emarsys commented 8 years ago

If escher authenticator middleware is used on any endpoint, it wraps any error thrown by the endpoint in an UnauthorizedError, even when the error is unrelated. https://github.com/emartech/suite-js-sdk/blob/master/authentication/request/koa.js#L13

gabor-balla-emarsys commented 8 years ago

This is fixed in https://github.com/emartech/suite-js-sdk/commit/3dc5bb586e629fea0e38fedeac3136c625887033