Handle KYC "In Review" status in Didit session polling - #1950
Merged
Conversation
The polling interval only checked for Approved/Declined statuses. When a user scans the QR code and completes KYC on mobile, the backend receives a webhook setting the status to "In Review" / under_review. The desktop poller never detected this state, leaving the embedded Didit widget as a blank white iframe. Add the missing under_review check so the user is redirected to the pending page. Also add onVerificationPending to the useEffect dependency array. https://claude.ai/code/session_018nQC7baTuQivbNDAzXcTVP
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Added handling for the "In Review" KYC status in the Didit session verification polling logic to properly notify users when their identity verification is pending review.
Key Changes
KycStatus.UNDER_REVIEWonVerificationPending()callback when the verification is in review stateonVerificationPendingcallbackImplementation Details
The change ensures that the verification flow properly handles the intermediate "In Review" state, which occurs after initial submission but before final approval/rejection. This prevents the polling from continuing indefinitely and allows the UI to display appropriate pending/review status messaging to the user.
https://claude.ai/code/session_018nQC7baTuQivbNDAzXcTVP