0.4.6 • Published 1 year ago
ahrvo-comply-react-sdk v0.4.6
@ahrvocomply/ahrvo-comply-react-sdk
Dependency
react - v16 or greater
Install
create a file named .npmrc in the root of your project with the following content
//registry.npmjs.org/:_authToken=token
where token should be replaced by the token provided by Ahrvo.
npm install --save @ahrvocomply/ahrvo-comply-react-sdk
Usage
import React, { Component } from 'react'
import { FormAndLiveness } from '@ahrvocomply/ahrvo-comply-react-sdk'
class Example extends Component {
render() {
return (
<FormAndLiveness
apikey='apikey provided by us'
companyId='company id provided by us'
onBiometricResponse={(data) => console.log('data', data)}
onVerificationResponse={(data) => console.log('data', data)}
client_webapp_url='Your web application url' // (optinal property)
nftid='testnet|mainnet' // If Mint NFT is being used - (optinal property)
isWalletRequired='true|false' // If wallet field should be required, by default its optional (optinal property)
isExpiryRequired='true|false' // If Expirty Date for ID card should be required, by default its optional (optinal property)
/>
)
}
}
where
- apikey(input) => api key provided by us,
- client_webapp_url(input) => The web aplpication url fo the client
- nftid(input) => This property should only be passed if NFT Minting is required / All fields are optional after this /
- isWalletRequired(input) => If wallet field should be marked as required
- isExpiryRequired(input) => If Expiry Date should be marked as require
NOTE: set <base href="/path" />
in public/index.html, the path will not matter but this property should exist in index.html, inside <head>
tag
License
Commercial © info@kycaml.systems
0.4.6
1 year ago