New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@verifai/websdk-react

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verifai/websdk-react

Verifai Web SDK

latest
npmnpm
Version
2.16.1
Version published
Maintainers
6
Created
Source

Verifai WebSDK for React

Install

# with npm
npm install @verifai/websdk-react --save

# or with yarn
yarn add @verifai/websdk-react

Usage

import React, { useState } from "react"
import WebSDK from '@verifai/websdk-react'

export default function MyComponent() {
  const [show, setShow] = useState(true)

  return <WebSDK
    // For the token look at: https://docs.verifai.com/sdk/web/
    token="<OTP_TOKEN>"

    show={show} // you can manipulate the show prop to show and hide the modal.

    onSuccess={sessionID => {
      // set show prop to false, to close the modal
      setShow(false)

      // Here you can get the Verifai result.
      // And also clear the Verifai session.
    }}
    onCanceled={sessionID => {
      // set show prop to false, to close the modal
      setShow(false)

      // Here your customer canceled the Verifai flow
      // And you can clear the Verifai session
    }}
  />
}

More Documentation

For more configuration and options you can see the documentation.

Demo

Want to try it out first? There is a demo available at: demo.websdk.verifai.com.

About Verifai

Please visit our website for more information about this and our other products: verifai.com.

Keywords

verifai

FAQs

Package last updated on 13 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts