hof 21.0.14-axios-beta → 21.0.16-axios-beta
Sign up to get free protection for your applications and to get access to all the features.
- package/model/index.js +9 -9
- package/package.json +1 -1
package/model/index.js
CHANGED
@@ -101,19 +101,19 @@ module.exports = class Model extends EventEmitter {
|
|
101
101
|
this.emit('sync', originalSettings);
|
102
102
|
|
103
103
|
const promise = Promise.resolve().then(() => this.auth()).then(authData => {
|
104
|
+
console.log("@@@@@@@@@@@@@@@@")
|
105
|
+
console.log(authData)
|
106
|
+
console.log(typeof authData)
|
107
|
+
console.log("@@@@@@@@@@@@@@@@")
|
104
108
|
let authVal = authData;
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
sendImmediately: true
|
111
|
-
};
|
112
|
-
}
|
109
|
+
const auth = authVal.split(':');
|
110
|
+
authVal = {
|
111
|
+
username: auth.shift(),
|
112
|
+
password: auth.join(':')
|
113
|
+
};
|
113
114
|
if(authVal) {
|
114
115
|
settings.headers = Object.assign({}, settings.headers, {Authorization: `Bearer ${authVal.bearer}`});
|
115
116
|
}
|
116
|
-
settings.auth = undefined;
|
117
117
|
console.log("SETTINGS ************")
|
118
118
|
console.log(settings)
|
119
119
|
console.log("SETTINGS ************")
|