@vizamodo/aws-sts-core 0.3.31 → 0.3.32

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.
@@ -10,7 +10,7 @@ export async function buildFederationLoginUrl(input) {
10
10
  if (!Number.isFinite(expiresAtMs) || expiresAtMs <= Date.now()) {
11
11
  throw new Error("[federation] invalid or expired credentials");
12
12
  }
13
- const cacheKey = `aws-signin:${await sha256Hex(input.sessionToken)}`;
13
+ const cacheKey = `aws-signin:${await sha256Hex(input.accessKeyId)}`;
14
14
  const sessionJson = JSON.stringify(session);
15
15
  const encoded = encodeURIComponent(sessionJson);
16
16
  const SigninToken = await getCachedOrFetch(cacheKey, async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",