flamerest 1.0.80 → 1.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REST.js +6 -0
- package/package.json +1 -1
package/REST.js
CHANGED
|
@@ -117,6 +117,12 @@ class FLAMEREST {
|
|
|
117
117
|
Errs[err['field']] = Errs[err['field']] === undefined ? err['message'] : Errs[err['field']] + ". " + err['message']
|
|
118
118
|
}
|
|
119
119
|
ResolveBody.errors = Errs;
|
|
120
|
+
break;
|
|
121
|
+
case 401:
|
|
122
|
+
if (typeof this.unauthorized_callback === 'function') {
|
|
123
|
+
this.unauthorized_callback();
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
}
|