Skip to content

Commit 3836475

Browse files
committed
fix(auth): no longer retry on InvalidGrantException
1 parent 87228e3 commit 3836475

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/core/src/auth/sso/clients.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,9 @@ export class OidcClient {
109109
return true
110110
}
111111

112-
// As part of SIM IDE-10703, there was an assumption that retrying on InvalidGrantException
113-
// may be useful. This may not be the case anymore and if more research is done, this may not be needed.
114-
// TODO: setup some telemetry to see if there are any successes on a subsequent retry for this case.
115-
return err.name === 'InvalidGrantException'
112+
// Previously retried InvalidGrantException on the basis that it may be useful
113+
// We have found that this is not a retryable exception
114+
return false
116115
}
117116
const client = new SSOOIDC({
118117
region,

0 commit comments

Comments
 (0)