You can integrate with the [Trulioo API][1] and instantly verify over five billion individuals and 250 million organizations. Although you can use the API with various ways (e.g., Java, C# etc.), there are a couple of quick-start projects that make integration easy.
If you are using npm, you can run `npm i trulioo` to install [the EmbedID component][2].
Install [trulioo-react][3]:
`npm install trulioo-react`
Then in your jsx:
```
import EmbedID from 'trulioo-react/EmbedID'
const handleResponse = (e) => {
// handle verification submission result here ...
}
<EmbedID url='URL' handleResponse={handleResponse} />
```
`handleResponse` is the callback from the vendor, here's [more info of what's][4] the response structure about.
To avoid [CORS][5] issues, you will need a backend server; you can either build your own or use [trulioo-react-sample-app][6]:
```
TRULIOO_BASE_URL=
TRULIOO_USERNAME=
TRULIOO_PASSWORD=
TRULIOO_PORT=
SIGNATURE_ALGORITHM=
PRIVATE_KEY_FILE_PATH=
```
Simply run the following command in your cmd/terminal and enjoy the ride.
```
# install the libraries needed
npm i
# start the server
npm start
```
[![enter image description here][7]][7]
---
Disclaimer: I work for Trulioo and I am the author of `trulioo-react` and `trulioo-react-sample-app` projects.
[1]: https://www.trulioo.com/developers/identity-verification/
[2]: https://www.npmjs.com/package/trulioo-react
[3]: https://github.com/Trulioo/trulioo-react
[4]: https://developer.trulioo.com/docs/identity-verification-step-6-verify
[5]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
[6]: https://github.com/Trulioo/trulioo-react-sample-app
[7]: https://i.stack.imgur.com/OfGDo.png
You can integrate with the [Trulioo API][1] and instantly verify over five billion individuals and 250 million organizations. Although you can use the API with various ways (e.g., Java, C# etc.), there are a couple of quick-start projects that make integration easy.
If you are using npm, you can run `npm i trulioo` to install [the EmbedID component][2].
Install [trulioo-react][3]:
`npm install trulioo-react`
Then in your jsx:
```
import EmbedID from 'trulioo-react/EmbedID'
const handleResponse = (e) => {
// handle verification submission result here ...
}
<EmbedID url='URL' handleResponse={handleResponse} />
```
`handleResponse` is the callback from the vendor, here's [more info of what's][4] the response structure about.
To avoid [CORS][5] issues, you will need a backend server; you can either build your own or use [trulioo-react-sample-app][6]:
```
TRULIOO_BASE_URL=
TRULIOO_USERNAME=
TRULIOO_PASSWORD=
TRULIOO_PORT=
SIGNATURE_ALGORITHM=
PRIVATE_KEY_FILE_PATH=
```
Simply run the following command in your cmd/terminal and enjoy the ride.
```
# install the libraries needed
npm i
# start the server
npm start
```
[![enter image description here][7]][7]
---
Disclaimer: I work for Trulioo and I am the author of `trulioo-react` and `trulioo-react-sample-app` projects.
[1]: https://www.trulioo.com/developers/identity-verification/
[2]: https://www.npmjs.com/package/trulioo-react
[3]: https://github.com/Trulioo/trulioo-react
[4]: https://developer.trulioo.com/docs/identity-verification-step-6-verify
[5]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
[6]: https://github.com/Trulioo/trulioo-react-sample-app
[7]: https://i.stack.imgur.com/OfGDo.png