@vizamodo/aws-sts-core 0.3.33 → 0.3.34

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,6 +10,14 @@ 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 tokenHash = await sha256Hex(input.sessionToken);
14
+ console.debug("[signin] key input", {
15
+ accessKeyId: input.accessKeyId,
16
+ tokenHash,
17
+ intent: input.intent,
18
+ region: input.region,
19
+ forceRefresh: input.forceRefresh
20
+ });
13
21
  const cacheKey = `aws-signin:${await sha256Hex(input.accessKeyId)}`;
14
22
  const sessionJson = JSON.stringify(session);
15
23
  const encoded = encodeURIComponent(sessionJson);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.3.33",
3
+ "version": "0.3.34",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",