Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-face-fingerprint-auth

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-face-fingerprint-auth

React Native face or fingerprint functionality for signing and encryption

  • 1.1.9
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by60%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-face-fingerprint-auth

With react-native-face-fingerprint-auth you have the possibility to use the authentication system by biometrics (face/fingerprint/iris), face Id, fingerprint, face, schema, pin stored in your phone.

Getting started

Start by installing react-native-face-fingerprint-auth using the following command:

1. Usage
  • install the latest react-native-face-fingerprint-auth using npm install react-native-face-fingerprint-auth or yarn add react-native-face-fingerprint-auth
  • import RNFaceFingerprintAuth, { BiometryTypes} from 'react-native-face-fingerprint-auth';

2. Biometry Types

Detects the type of biometric sensor available on your phone. BiometryTypes is a string indicating what type of biometric data is available in a phone: TouchID, FaceID, Biometrics, or undefined if biometrics is not available.

Example
const rnFaceFingerprintAuth = new ReactNativeBiometrics()

rnFaceFingerprintAuth.isBiometryAvailable()
  .then((result) => {
    const { available, biometryType } = result

    if (available && biometryType === BiometryTypes.TouchID) {
      console.log('TouchID is supported')
    } else if (available && biometryType === BiometryTypes.FaceID) {
      console.log('FaceID is supported')
    } else if (available && biometryType === BiometryTypes.Biometrics) {
      console.log('Biometrics is supported')
    } else {
      console.log('Biometrics not supported')
    }
  })

3. Face or fingerprint or iris authentification

authenticate yourself using the type of biometric sensor available on your phone (TouchID, FaceID, Biometrics).

Example
const rnFaceFingerprintAuth = new ReactNativeBiometrics()

rnFaceFingerprintAuth.
  .faceOrFingerPrintAuth({
        title: "Confirmez",
        subTitle: "Veuillez vous authentifiez",//Optionnel
        description: "ddddd",//Optionnel
        cancelButtonText: "Je prefere utilisez",//Optionnel
        confirmationRequired:false,//Optionnel
        allowDeviceCredentials:false//Optionnel default false
  })
  .then(result => {
        const { success } = result;

        if (success) {
          console.log("authentification reussit");
        } else {
          console.log("l'utilisateur a annuler");
        }
  })
  .catch(() => {
      console.log("erreur d'authentification !");
});
Demo

auth.gif

react-native-face-fingerprint-auth

Keywords

FAQs

Package last updated on 26 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc