@vizamodo/aws-sts-core 0.2.8 → 0.2.12

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.
@@ -6,6 +6,5 @@ export declare function buildFederationLoginUrl(input: {
6
6
  }): Promise<{
7
7
  loginUrl: string;
8
8
  shortUrl: string;
9
- ttlHours: number;
10
9
  region: string;
11
10
  }>;
@@ -19,7 +19,6 @@ export async function buildFederationLoginUrl(input) {
19
19
  return {
20
20
  loginUrl,
21
21
  shortUrl,
22
- ttlHours: 1,
23
22
  region: input.region
24
23
  };
25
24
  }
package/dist/sts/issue.js CHANGED
@@ -23,7 +23,7 @@ async function getSigningMaterial(input) {
23
23
  function resolveSessionTtlByProfile(profile) {
24
24
  switch (profile) {
25
25
  case "HubConsoleReadOnly":
26
- return 3 * 60 * 60; // 12h
26
+ return 12 * 60 * 60; // 12h
27
27
  case "HubBillingReadonly":
28
28
  case "HubBillingAdmin":
29
29
  return 2 * 60 * 60; // 2h
@@ -154,15 +154,6 @@ export async function issueAwsCredentials(input) {
154
154
  }
155
155
  const json = await res.json();
156
156
  const creds = json?.credentialSet?.[0]?.credentials;
157
- console.log("[issueAwsCredentials][aws-response]", {
158
- raw: json,
159
- });
160
- console.log("[issueAwsCredentials][parsed-credentials]", {
161
- accessKeyId: creds?.accessKeyId,
162
- secretAccessKey: creds.secretAccessKey,
163
- sessionToken: creds.sessionToken,
164
- expiration: creds?.expiration,
165
- });
166
157
  return {
167
158
  accessKeyId: creds.accessKeyId,
168
159
  secretAccessKey: creds.secretAccessKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.2.8",
3
+ "version": "0.2.12",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",