@vizamodo/aws-sts-core 0.3.45 → 0.3.47

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.
@@ -66,15 +66,14 @@ export async function buildFederationLoginUrl(input) {
66
66
  expiryIso,
67
67
  now: Date.now()
68
68
  });
69
- return wrapResult({ token }, expiryIso);
69
+ // restore primitive storage (cache layer now handles primitive safely)
70
+ return wrapResult(token, expiryIso);
70
71
  }, { ttlSec: 60, ...(input.forceRefresh !== undefined ? { forceRefresh: input.forceRefresh } : {}) } // allow caller-controlled retry
71
72
  );
72
73
  if (!SigninToken) {
73
74
  throw new Error("[federation] unable to obtain SigninToken");
74
75
  }
75
- const rawToken = typeof SigninToken === "string"
76
- ? SigninToken
77
- : SigninToken?.token;
76
+ const rawToken = SigninToken;
78
77
  const baseLogin = `https://signin.aws.amazon.com/federation?Action=login` +
79
78
  `&Issuer=viza` +
80
79
  `&SigninToken=${rawToken}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.3.45",
3
+ "version": "0.3.47",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,6 +28,6 @@
28
28
  "vitest": "^4.1.0"
29
29
  },
30
30
  "dependencies": {
31
- "@vizamodo/edge-cache-core": "^0.3.35"
31
+ "@vizamodo/edge-cache-core": "^0.3.38"
32
32
  }
33
33
  }