ag-awsauth 0.0.9 → 0.0.10
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.
- package/dist/helpers/browser.js +5 -2
- package/dist/helpers/sso.js +7 -1
- package/package.json +2 -2
package/dist/helpers/browser.js
CHANGED
|
@@ -147,8 +147,11 @@ function getMFA(p) {
|
|
|
147
147
|
//
|
|
148
148
|
yield (0, sleep_1.sleep)(3000);
|
|
149
149
|
yield page.waitForNetworkIdle({ idleTime: 250 });
|
|
150
|
-
yield page.waitForSelector('
|
|
151
|
-
|
|
150
|
+
yield page.waitForSelector('.awsui-signin-button', {
|
|
151
|
+
timeout: config_1.timeoutMs,
|
|
152
|
+
visible: true, //may need this for more calls
|
|
153
|
+
});
|
|
154
|
+
yield page.$eval('.awsui-signin-button', (el) => el.click());
|
|
152
155
|
yield (0, sleep_1.sleep)(250);
|
|
153
156
|
yield page.waitForNetworkIdle({ idleTime: 250 });
|
|
154
157
|
yield page.waitForSelector('.awsui-icon-variant-success', {
|
package/dist/helpers/sso.js
CHANGED
|
@@ -122,7 +122,13 @@ const tryExistingCredentials = () => __awaiter(void 0, void 0, void 0, function*
|
|
|
122
122
|
}
|
|
123
123
|
catch (e) {
|
|
124
124
|
//
|
|
125
|
-
|
|
125
|
+
const em = e.toString();
|
|
126
|
+
if (em.includes('is expired') || em.includes('or invalid')) {
|
|
127
|
+
(0, log_1.info)('access token or sso expired, need to wipe');
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
(0, log_1.info)(e);
|
|
131
|
+
}
|
|
126
132
|
}
|
|
127
133
|
}
|
|
128
134
|
return {
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"author": "andrei gec (andreigec@hotmail.com)",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"private": false,
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.10",
|
|
9
9
|
"preferGlobal": true,
|
|
10
10
|
"scripts": {
|
|
11
11
|
"format": "eslint --ext .ts,.tsx ./src --fix",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"eslint-config-e7npm": "0.0.8",
|
|
36
36
|
"ini": "3.0.1",
|
|
37
37
|
"node-fetch": "2.6.9",
|
|
38
|
-
"puppeteer": "19.7.
|
|
38
|
+
"puppeteer": "19.7.2",
|
|
39
39
|
"readline-sync": "1.4.10",
|
|
40
40
|
"ts-node": "10.9.1",
|
|
41
41
|
"typescript": "4.9.5",
|