Skip to content

Commit

Permalink
preserve behavior: throw idx response on idx action if request did no…
Browse files Browse the repository at this point in the history
…t succeed
  • Loading branch information
aarongranick-okta committed Mar 22, 2022
1 parent 48d523c commit eaa7ee0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/idx/idx-js/v1/generateIdxAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ const generateDirectFetch = function generateDirectFetch({
// set `stepUp` to true if flow should be continued without showing any errors
idxResponse.stepUp = true;
}

// Throw IDX response if request did not succeed. This behavior will be removed in version 7.0: OKTA-481844
if (!requestDidSucceed) {
throw idxResponse;
}

return idxResponse;
};
};
Expand Down

0 comments on commit eaa7ee0

Please sign in to comment.