biz-slide-core 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -50,7 +50,7 @@ exports.signUid = signUid;
50
50
  var verifyUid = function (token) { return __awaiter(void 0, void 0, void 0, function () {
51
51
  return __generator(this, function (_a) {
52
52
  return [2 /*return*/, new Promise(function (resolve) {
53
- var jwtToken = token.split(" ")[1];
53
+ var jwtToken = token.split(" ")[1] || token;
54
54
  jsonwebtoken_1.default.verify(jwtToken, process.env.JWTSECRET || 'secret', function (err, decoded) {
55
55
  if (err) {
56
56
  console.log(err);