I want to replace a traditional email/password login with face authentication in my web application. What is the recommended FACEIO flow, and where should `fio.js` fit in the login page?
How do I replace password login with FACEIO facial authentication in a web app?
Asked
Modified
Viewed
10785 times
✓ Accepted Solution
Hello,
The usual flow is:
- Create a FACEIO application in the FACEIO Console.
- On your website, add
fio.jsto your login or account-security page. - Initialize FACEIO with your application Public ID.
- Call
enroll()when a user registers their face. - Call
authenticate()when a returning user signs in.
FACEIO handles the browser widget, camera capture, liveness checks, and face matching. Your application should still manage account state, session creation, recovery flows, and any server-side authorization logic.
Useful links:
- FACEIO Console: https://console.faceio.net/
- Getting Started: https://faceio.net/getting-started
- Integration Guide: https://faceio.net/integration-guide
- Security Best Practices: https://faceio.net/security-best-practice