@sebspark/gcp-iam 1.2.0 → 1.2.1

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 CHANGED
@@ -153,7 +153,7 @@ var checkCache = ({
153
153
  return cachedJwt;
154
154
  }
155
155
  const jwtPromise = generate();
156
- apiGatewayJwtCache.put(cacheKey, jwtPromise, expInSeconds / 2);
156
+ apiGatewayJwtCache.put(cacheKey, jwtPromise, expInSeconds / 2 * 1e3);
157
157
  return jwtPromise;
158
158
  };
159
159
  var generateTokenByClientId = async (clientId, logger) => {
package/dist/index.mjs CHANGED
@@ -125,7 +125,7 @@ var checkCache = ({
125
125
  return cachedJwt;
126
126
  }
127
127
  const jwtPromise = generate();
128
- apiGatewayJwtCache.put(cacheKey, jwtPromise, expInSeconds / 2);
128
+ apiGatewayJwtCache.put(cacheKey, jwtPromise, expInSeconds / 2 * 1e3);
129
129
  return jwtPromise;
130
130
  };
131
131
  var generateTokenByClientId = async (clientId, logger) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/gcp-iam",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",