@azteam/express 1.2.217 → 1.2.218

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.217",
3
+ "version": "1.2.218",
4
4
  "main": "src/index.js",
5
5
  "engines": {
6
6
  "node": ">= 12.0.0",
@@ -37,7 +37,9 @@ export function authMiddleware(req, res, next) {
37
37
  throw new ErrorException(TOKEN_FAILED, err);
38
38
  }
39
39
  }
40
- throw new ErrorException(TOKEN_FAILED, ['Token type failed']);
40
+ throw new ErrorException(TOKEN_FAILED, {
41
+ message: 'Token type invalid',
42
+ });
41
43
  }
42
44
  }
43
45