@ccci/micro-server 1.0.159 → 1.0.160

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -297510,12 +297510,12 @@ var ISSUER = process.env.JWT_ISSUER ? process.env.JWT_ISSUER : "*.service";
297510
297510
  function generate(payload) {
297511
297511
  const enhancedPayload = {
297512
297512
  ...payload,
297513
- iss: ISSUER,
297514
- typ: "JWT"
297513
+ iss: ISSUER
297515
297514
  };
297516
297515
  const options = {
297517
297516
  algorithm: "HS256",
297518
- expiresIn: EXPIRY
297517
+ expiresIn: EXPIRY,
297518
+ issuer: ISSUER
297519
297519
  };
297520
297520
  return import_jsonwebtoken.default.sign(enhancedPayload, SECRET_KEY, options);
297521
297521
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.159",
3
+ "version": "1.0.160",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",