flamerest 1.0.69 → 1.0.71

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.
Files changed (2) hide show
  1. package/REST.js +1 -1
  2. package/package.json +1 -1
package/REST.js CHANGED
@@ -482,7 +482,7 @@ class FLAMEREST {
482
482
  async auth(username, password, isNeedToken) {
483
483
 
484
484
  let resp = null;
485
- if (this.token !== null && (username === null || username === undefined)) {
485
+ if (this.token !== null && this.token !== 'undefined' && (username === null || username === undefined)) {
486
486
  resp = await this.request(this.SERVER + '/auth/auth', JSON.stringify({}), 'POST', 'json', true);
487
487
  }
488
488
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flamerest",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "",
5
5
  "main": "REST.js",
6
6
  "typings": "./REST.d.ts",