@vizamodo/aws-sts-core 0.3.29 → 0.3.30

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.
@@ -7,4 +7,5 @@ export declare function issueAwsCredentials(input: {
7
7
  certBase64: string;
8
8
  privateKeyPkcs8Base64: string;
9
9
  profile: string;
10
+ forceRefresh?: boolean;
10
11
  }): Promise<AwsCredentialResult>;
package/dist/sts/issue.js CHANGED
@@ -75,7 +75,7 @@ function resolveSessionTtlByProfile(profile) {
75
75
  // Main export
76
76
  // ---------------------------------------------------------------------------
77
77
  export async function issueAwsCredentials(input) {
78
- const { roleArn, profileArn, trustAnchorArn, region, certBase64, privateKeyPkcs8Base64, profile, } = input;
78
+ const { roleArn, profileArn, trustAnchorArn, region, certBase64, privateKeyPkcs8Base64, profile, forceRefresh, } = input;
79
79
  const sessionTtl = resolveSessionTtlByProfile(profile);
80
80
  const normalizedCert = normalizeCert(certBase64);
81
81
  // ---- DER serial extraction (with isolate-level cache) ----
@@ -162,7 +162,10 @@ export async function issueAwsCredentials(input) {
162
162
  return wrapResult(value, edgeCacheExpiry);
163
163
  }
164
164
  return value;
165
- }, { ttlSec: 60 });
165
+ }, {
166
+ ttlSec: 60,
167
+ ...(forceRefresh !== undefined ? { forceRefresh } : {})
168
+ });
166
169
  }
167
170
  // ---------------------------------------------------------------------------
168
171
  // Helpers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.3.29",
3
+ "version": "0.3.30",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",