https://github.com/aaronksaunders/biometics-plugin-example
ionic react application demonstrating biometric authentication
https://github.com/aaronksaunders/biometics-plugin-example
android biometric-authentication capacitor faceid-authentication ionic-framework ios reactjs touchid-authentication
Last synced: about 1 month ago
JSON representation
ionic react application demonstrating biometric authentication
- Host: GitHub
- URL: https://github.com/aaronksaunders/biometics-plugin-example
- Owner: aaronksaunders
- Created: 2022-05-27T18:30:47.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-27T21:21:43.000Z (about 4 years ago)
- Last Synced: 2025-01-21T20:11:33.338Z (over 1 year ago)
- Topics: android, biometric-authentication, capacitor, faceid-authentication, ionic-framework, ios, reactjs, touchid-authentication
- Language: TypeScript
- Homepage:
- Size: 755 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# biometics-plugin-example
---
- this is an example Ionic Capacitor Application using the [fingprint.io plugin](https://danielsogl.gitbook.io/awesome-cordova-plugins/fingerprint-aio-1)
- has been tested on ios and android
```
npm install cordova-plugin-fingerprint-aio
```
using in react application
```javascript
// import statement
import { FingerprintAIO } from "@awesome-cordova-plugins/fingerprint-aio";
```
Check if available
```javascript
(async () => {
try {
const isAvailable = await FingerprintAIO.isAvailable();
console.log(isAvailable);
} catch (error) {
console.log(error);
}
})();
```
Display FaceId or FingerPrint Id
```javascript
(async () => {
try {
const showResp = await FingerprintAIO.show({
disableBackup: false,
title: "test display",
});
console.log('Show Response', showResp);
} catch (error) {
console.log(error);
}
})();
```