@identance/websdk
TypeScript icon, indicating that this package has built-in type declarations

3.0.14 • Public • Published

Identace websdk

Installation

npm i @identance/websdk

Counfigureation

import render from '@identance/websdk';

// config example
const config = {
  baseUrl: 'https://your-website.com/verification-route',
  backUrl: 'https://your-website.com',
  requestToken: 'your jwt token',
  appConfig: {
    api: 'https://api.identance.com',
  },
  theme: {
    config: {
      components: {
        navigation: {
          backgroundColor: '#f8fafe',
      },
    },
  },
};

// mount node
const element = document.getElementById('#example');

// event handler
const handler = (eventName, payload) => {
  console.log(eventName, payload)
}

// render verification application 
render(config, element, handler);

Additional documentation

Check out the guide for further integration https://docs.identance.com

Package Sidebar

Install

npm i @identance/websdk

Weekly Downloads

1

Version

3.0.14

License

none

Unpacked Size

18.1 MB

Total Files

31

Last publish

Collaborators

  • m.muryn
  • i.mazur