Skip to content

Sumsub: Feat - Add Device Intelligence support#2224

Draft
cmgustavo wants to merge 1 commit into
bitpay:developfrom
cmgustavo:feat/sumsub-device-intelligence-01
Draft

Sumsub: Feat - Add Device Intelligence support#2224
cmgustavo wants to merge 1 commit into
bitpay:developfrom
cmgustavo:feat/sumsub-device-intelligence-01

Conversation

@cmgustavo

Copy link
Copy Markdown
Member

Adds client-side SumSub Device Intelligence (via @sumsub/fisherman).

  • src/lib/sumsub/deviceIntelligence.tscaptureDeviceIntelligence({network}): gets the
    Unique Device ID, obtains a DI access token, initializes fisherman and returns the
    visitorId.
  • Token strategy (no secret key in the app): DEV uses a local token from
    scripts/get-sumsub-di-token.js (sandbox, simulation mode); PROD fetches the token
    from the BitPay backend (stubbed — endpoint TBD) so it's minted server-side.
  • src/Root.tsx — calls it on startup (temporary demo).
  • docs/sumsub-device-intelligence-plan.md — check comments.

Notes

  • Runs in bare React Native (no WebView needed).
  • The SumSub sandbox is in simulation mode (no real FingerprintJS apiKey), so testing uses
    simulationConfig (visitorId = Device ID + all supported riskLabels). Verified
    end-to-end: token minted, fingerprint(){ visitorId }, risk labels reported.
  • SUMSUB_DI_DEV_TOKEN is committed empty.

@cmgustavo cmgustavo force-pushed the feat/sumsub-device-intelligence-01 branch from fc89e5e to eec0667 Compare July 10, 2026 19:36
@cmgustavo cmgustavo marked this pull request as draft July 13, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant