@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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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) => {
|