PYIC-7189: SPIKE repeat CRI callbacks #3343
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Proposed changes
What changed
Processing continues after this and resulting journey saved to CriOauthSessionItem
I also experimented with trying to check the CriOauthSessionItem again in ProcessJourneyEvent if the
attempt-recoveryevent was given AND the current state is a CRI state so that we can check here again if the processing was complete on that oauthState. This could help with lengthening the window to process the callback. However, if still not complete by then, the user would have to go through the CRI again.I also thought about trying to return the user back to the attempt-recovery screen if the processing wasn't finished (at the point where the user selects continue from the attempt-recovery screen) but this added quite a bit more complexity which I thought wasn't worth it if the CRIs mostly affected are the DCMAW (not really used anymore with V2 app) and CIC (fairly quick and easy to go through) CRIs.
Testing Results:
Why did it change
Impact:

From 30/06/2025-28/07/2025, the number of repeat callbacks by CRI:
Issue tracking
Checklists