I am doing a project in web dev where users are able to login and submit their face ID to be stored in firebase. I have the backend functionalities working but I cannot get the faceIO application to run and work. I am using react and typescript, I also get this issue where typescript doesnt recognise faceIO when i use npm i @faceio/fiojs. I had to create a ts file where i declare the methods such as enroll and authenticate for the application to run but i still run into errors, are there any fixes for this?
Typescript fio.js integration issues
Asked
Modified
Viewed
535 times
✓ Accepted Solution
Hello,
Thank you for reaching out, and welcome to the FACEIO support center. To answer your inquiry:
- The issue you are describing is unrelated to FACEIO but rather to your integration process. Search the community forum about React integration, and you should get a solution to your issue. Most common issues are:
- You included fio.js on more than once on your HTML resulting on multiple redeclaration of the same class name. Please check your code for duplicate declarations and ensure fio.js is included only once.
- Next, you will need to install & Integrate the React Webview Package to your React Native mobile app.
- From the Webview, instantiate a new FACEIO object as usual and start your integration phase.nally, from the Webview, instantiate a new FACEIO object as usual and start your integration phase.
- Finally, try a standard integration using Vanilla JavaScript or React.js to see everything is working as expected.
Do let us know if you need further assistance,
Best;