Skip to main content

Resources

Best practices
  • Initialize the SDK on page load, not on the capture button click. Authentication with the backend takes a few seconds and, if done together with the camera opening, creates a perception of lag.
  • Separate prepareSelfieCamera() from open() to optimize camera startup — keep the prepare step warm while the user navigates to the capture screen.
  • Configure the CSP correctly — without the required directives, the SDK cannot load Web Workers and additional resources.
  • Host additional resource files in a public location visible to the Web within your project.
  • Keep the SDK updated. Unico is not responsible for issues in deprecated versions.
Sample app
Language / FrameworkDescriptionRepository
AngularPoC in Angular that implements the Web SDKGitHub — unico-sdk-poc-angular
JS VanillaPoC in JS Vanilla that implements the Web SDKGitHub — unico-sdk-poc-js-vanilla
Next.jsPoC in Next.js that implements the Web SDKGitHub — unico-sdk-poc-next-js
React JS with TypeScriptPoC in React with TypeScript that implements the Web SDKGitHub — unico-webframe-poc-react
React JS with JavaScriptPoC in React with JavaScript that implements the Web SDKGitHub — unico-sdk-poc-react-js
React JS with Webpack + BabelPoC in React JS with Webpack + Babel that implements the Web SDKSFTP — request from your Project Manager
Vue JSPoC in Vue JS that implements the Web SDKGitHub — unico-sdk-poc-vuejs