biz-slide-core 1.2.75 → 1.2.76

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.
@@ -131,7 +131,7 @@ var authorizeWithSlideApp = function () {
131
131
  sessionId: sessionId,
132
132
  ipAddress: ipAddress,
133
133
  appName: req.headers['x-app-name'],
134
- email: (token === null || token === void 0 ? void 0 : token.customer_id) || ""
134
+ email: (token === null || token === void 0 ? void 0 : token.customer_email) || ""
135
135
  };
136
136
  next();
137
137
  _b.label = 2;
@@ -162,7 +162,7 @@ var nonAuthorizeWithSlideApp = function () {
162
162
  return [2 /*return*/, res.status(401).json({ message: 'Session Expired' })];
163
163
  }
164
164
  userId = (token === null || token === void 0 ? void 0 : token.customer_id) || ((_a = token === null || token === void 0 ? void 0 : token.value) === null || _a === void 0 ? void 0 : _a.email);
165
- email = (token === null || token === void 0 ? void 0 : token.customer_id) || "";
165
+ email = (token === null || token === void 0 ? void 0 : token.customer_email) || "";
166
166
  if (!userId) {
167
167
  return [2 /*return*/, res.status(401).json({ message: 'userId not found' })];
168
168
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.75",
3
+ "version": "1.2.76",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {