ag-awsauth 0.0.133 → 0.0.134
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/sso.js +2 -1
- package/package.json +1 -1
package/dist/helpers/sso.js
CHANGED
|
@@ -95,6 +95,7 @@ function getSamlAssertion(p, instance) {
|
|
|
95
95
|
}
|
|
96
96
|
exports.getSamlAssertion = getSamlAssertion;
|
|
97
97
|
const tryExistingCredentials = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
98
|
+
var _e;
|
|
98
99
|
const credraw = yield (0, awsconfig_1.getAwsCredentials)();
|
|
99
100
|
if (!credraw.default.aws_access_token) {
|
|
100
101
|
return undefined;
|
|
@@ -123,7 +124,7 @@ const tryExistingCredentials = () => __awaiter(void 0, void 0, void 0, function*
|
|
|
123
124
|
catch (e) {
|
|
124
125
|
//
|
|
125
126
|
const em = e.toString();
|
|
126
|
-
if (em.includes('is expired')
|
|
127
|
+
if ((_e = em.includes('is expired')) !== null && _e !== void 0 ? _e : em.includes('or invalid')) {
|
|
127
128
|
(0, log_1.info)('access token or sso expired, need to wipe');
|
|
128
129
|
}
|
|
129
130
|
else {
|