@hiveid/verify-sandbox
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Verify Web SDK

Browser

const options = {
  mode: 'modal',
  languageBaseUrl: '',
  supportedLanguages: ['en', 'ru', 'es', 'fr'],
  language: 'es', // Specifies the language of the widget. Defaults to "en"
  languageSelector: true, // Defaults to 'false'
}

const verify = new Verify('application_key', options);
verify.on('completed', ({session_id}) => {
  console.log(session_id);
})
verify.on('canceled', ({session_id}) => {})
verify.on('action', ({type}) => {
  console.log(type) // -> SMS_SENT;
})

const container = document.getElementById('sdk-container');
verify.mount(token, container);
verify.unmount()

Package Sidebar

Install

npm i @hiveid/verify-sandbox

Weekly Downloads

0

Version

1.3.0

License

MIT

Unpacked Size

695 kB

Total Files

5

Last publish

Collaborators

  • antsiferovmaxim
  • yznatokov