@riocrypto/common-server 1.0.691 → 1.0.692
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.
|
@@ -100,9 +100,12 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
|
|
|
100
100
|
throw new Error("Unable to get ADMIN_ACCESS_TOKEN_SECRET");
|
|
101
101
|
}
|
|
102
102
|
const payload = jsonwebtoken_1.default.verify(req.cookies.adminAccessToken, ADMIN_ACCESS_TOKEN_SECRET);
|
|
103
|
+
console.log(payload);
|
|
103
104
|
req.currentAdminAuth = payload;
|
|
104
105
|
}
|
|
105
|
-
catch (err) {
|
|
106
|
+
catch (err) {
|
|
107
|
+
console.log(err);
|
|
108
|
+
}
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
if (authorizationTypes.includes(common_1.AuthorizationType.PartnerAuth) ||
|