@go.saffe/go-saffe-react-js
v1.2.1
Published
Go saffe capture component for react js
Downloads
540
Readme
go-saffe-react-js
Go saffe capture component for react js
Install
npm install --save @go.saffe/go-saffe-react-js
yarn add @go.saffe/go-saffe-react-js
Usage
import { GoSaffeCapture } from '@go.saffe/go-saffe-react-js'
export function Example() {
return (
<GoSaffeCapture
captureKey='' // capture key (sandbox or production)
user='' // end-user identifier (either email or CPF)
type='' // 'onboarding' or 'verification'
endToEndId='' // identifier to keep consistency between front and backend
onClose={() => console.log('')} // callback function called when end-user closes (cancels) the capture
onFinish={() => console.log('')} // callback function called when end-user finishes (completes) the capture
onTimeout={() => console.log('')} // callback function called when the capture ends for timeout
/>
)
}