@vizamodo/aws-sts-core 0.3.27 → 0.3.28

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.
@@ -5,6 +5,7 @@ export declare function buildFederationLoginUrl(input: {
5
5
  region: string;
6
6
  expiration: string;
7
7
  intent?: "console" | "billing" | "dynamodb" | "ssm";
8
+ forceRefresh?: boolean;
8
9
  }): Promise<{
9
10
  ok: true;
10
11
  loginUrl: string;
@@ -35,7 +35,7 @@ export async function buildFederationLoginUrl(input) {
35
35
  return token;
36
36
  }
37
37
  return wrapResult(token, new Date(Date.now() + effectiveTtlSec * 1000).toISOString());
38
- }, { ttlSec: 60 } // fallback only if expiration invalid
38
+ }, { ttlSec: 60, forceRefresh: input.forceRefresh } // allow caller-controlled retry
39
39
  );
40
40
  if (!SigninToken) {
41
41
  throw new Error("[federation] unable to obtain SigninToken");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",