|  FACEIO  |  Knowledge Sharing & Public Forums


How do I replace password login with FACEIO facial authentication in a web app?

Asked
Modified
Viewed 10785 times
4

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?


✓ Accepted Solution

17

Hello,

The usual flow is:

  1. Create a FACEIO application in the FACEIO Console.
  2.  On your website, add fio.js to your login or account-security page.
  3. Initialize FACEIO with your application Public ID.
  4. Call enroll() when a user registers their face.
  5. 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: