Skip to content

Commit ee2f240

Browse files
committed
Update error codes in getIamCredential
1 parent e7f5d2a commit ee2f240

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/auth/auth2.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,10 @@ export class IamLogin extends BaseLogin {
568568
} catch (err: any) {
569569
switch (err.data?.awsErrorCode) {
570570
case AwsErrorCodes.E_CANCELLED:
571-
case AwsErrorCodes.E_SSO_SESSION_NOT_FOUND:
571+
case AwsErrorCodes.E_INVALID_PROFILE:
572572
case AwsErrorCodes.E_PROFILE_NOT_FOUND:
573+
case AwsErrorCodes.E_CANNOT_CREATE_STS_CREDENTIAL:
574+
case AwsErrorCodes.E_INVALID_STS_CREDENTIAL:
573575
this.updateConnectionState('notConnected')
574576
break
575577
default:

0 commit comments

Comments
 (0)