Skip to content

ionic react application demonstrating biometric authentication

Notifications You must be signed in to change notification settings

aaronksaunders/biometics-plugin-example

Repository files navigation

biometics-plugin-example


  • this is an example Ionic Capacitor Application using the fingprint.io plugin
  • has been tested on ios and android
npm install cordova-plugin-fingerprint-aio

using in react application

// import statement
import { FingerprintAIO } from "@awesome-cordova-plugins/fingerprint-aio";

Check if available

(async () => {
  try {
    const isAvailable = await FingerprintAIO.isAvailable();
    console.log(isAvailable);
  } catch (error) {
    console.log(error);
  }
})();

Display FaceId or FingerPrint Id

(async () => {
  try {
    const showResp = await FingerprintAIO.show({
      disableBackup: false,
      title: "test display",
    });
    console.log('Show Response', showResp);
  } catch (error) {
    console.log(error);
  }
})();