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