Get started

Set up the Sumsub WebSDK and WebSDK 2.0.

To get started with the WebSDK:

  1. Set up a verification level.
  2. Generate an access token which you will pass to the WebSDK during initialization.
  3. Install an NPM package or use the CDN version of the script. We also have a package for React.
  4. Launch the SDK initialization function with the accessToken parameter you have generated at the second step. See Standalone example to learn more.

📘

Info

  • To enable the WebSDK 2.0, go to the created verification level and on the General tab, enable the New version of WebSDK toggle.
  • Make sure to update an NPM-dependency to the latest version (2.0.1).

👍

Tip

To initialize the WebSDK within the mobile app using WebView, make sure that:

  • WebView is able to access the device local storage and initialize the camera. For older iOS versions, the camera can be accessed only from the Safari browser or WebView SFSafariViewController.
  • HTML5 video playback is allowed (we are using some instructions within <video> tags). If video instructions are not played, try using WebChromeClient to enable video playback.
  • Autoplay in fullscreen mode is disabled and allowsInlineMediaPlayback is set to true for WebView with running SDK.
  • The selector file is implemented on your side (required for file uploads).