biz-slide-core 1.2.75 → 1.2.76
Sign up to get free protection for your applications and to get access to all the features.
@@ -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.
|
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.
|
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
|
}
|