@ccci/micro-server 1.0.93 → 1.0.94
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/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -113667,6 +113667,7 @@ function generate(payload) {
|
|
|
113667
113667
|
return import_jsonwebtoken.default.sign(payload, SECRET_KEY, { expiresIn: EXPIRY, issuer: ISSUER });
|
|
113668
113668
|
}
|
|
113669
113669
|
function verify(token) {
|
|
113670
|
+
console.log("process.env.JWT_SECRET_KEY :>> ", process.env.JWT_SECRET_KEY);
|
|
113670
113671
|
let decoded = import_jsonwebtoken.default.verify(token, SECRET_KEY);
|
|
113671
113672
|
if (decoded.iss !== ISSUER) {
|
|
113672
113673
|
throw new Error("Token Issuer is not valid");
|