Closed willeeklund closed 2 years ago
The library does not support sending in your own encoder function as argument to .auth() (encoder is hard coded there). This PR makes it an optional option. Without this PR one needs to use the internal ._auth() method, which is bad practise.
.auth()
encoder
._auth()
.auth(): https://github.com/visionmedia/superagent/blob/master/src/client.js
._auth(): https://github.com/visionmedia/superagent/blob/1277a880c32191e300b229e352e0633e421046c8/src/request-base.js#L514
see https://github.com/visionmedia/superagent/pull/1720
v7.1.3 released https://github.com/visionmedia/superagent/releases/tag/v7.1.3
The library does not support sending in your own encoder function as argument to
.auth()
(encoder
is hard coded there). This PR makes it an optional option. Without this PR one needs to use the internal._auth()
method, which is bad practise..auth()
: https://github.com/visionmedia/superagent/blob/master/src/client.js._auth()
: https://github.com/visionmedia/superagent/blob/1277a880c32191e300b229e352e0633e421046c8/src/request-base.js#L514