Improve KYC duplicate detection messaging and review status#2090
Merged
Conversation
…/activate Didit's new duplicate IP and duplicate device filters surface as DUPLICATED_IP / DUPLICATED_DEVICE risks in the ip_analyses block, which the backend already extracts into kycWarnings. Map both tags (plus POSSIBLE_DUPLICATED_USER, ID_DOCUMENT_IN_BLOCKLIST) to UNRETRYABLE_FRAUD_RISKS so step 1 shows "We couldn't approve your application" with the specific reason and a "Contact support" button instead of the default "Retry KYC" that would just hit the same filter again.
Didit's duplicate IP / duplicate device filters are configured to send suspicious applicants to In Review (not Declined) so they don't reach Rain. Backend already maps that to kycStatus=UNDER_REVIEW with the warnings preserved, but the UI was returning the same generic "being reviewed, takes a few minutes" copy regardless. Render the per-warning reasons when present so the applicant knows what's being checked; keep the original copy as the empty-warnings fallback.
…nings The duplicate IP / duplicate device filters in Didit send applicants to In Review, never to Declined, so the REJECTED-with-fraud branch added in fc97af8 never fires in practice. Pull the UNRETRYABLE_FRAUD_RISKS set, hasUnretryableFraudWarning helper, handleContactSupport callback, and the alternate REJECTED description; keep the new DUPLICATED_IP / DUPLICATED_DEVICE entries in DIDIT_WARNING_DESCRIPTIONS and the UNDER_REVIEW description tweak from f0109dd — those are the pieces that actually surface the duplicate reason on /card/activate.
|
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
Enhanced KYC (Know Your Customer) warning messages and user-facing descriptions to provide clearer feedback when duplicate accounts, IPs, or devices are detected during verification.
Key Changes
POSSIBLE_DUPLICATED_USERwarning message to be more specific: "This identity is already linked to another verified account"DUPLICATED_IP: "This network has already been used to verify another account"DUPLICATED_DEVICE: "This device has already been used to verify another account"Implementation Details
https://claude.ai/code/session_01FHiq6biBgq1PGQp46RbdDK