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.7
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-face-fingerprint-auth

Avec react-native-face-fingerprint-auth vous avez la possiblité d'utiliser le systeme d'authentification systeme par biometrie(face/fingerprint/iris), face Id , fingerprint, face, schema, Pin enregistrés dans votre telephone.

Getting started

Commencer par installer react-native-face-fingerprint-auth en utilisant la commande suivante:

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

Détecte le type de capteur biométrique disponible sur votre téléphone. BiometryTypes est une chaîne indiquant quel type de données biométriques est disponible dans un telephone.les valeurs prise en charge sont: TouchID, FaceID, Biometrics, ou undefined si la biométrie n'est pas disponible.

Exemple
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

authentifiez-vous en utilisant le type de capteur biométrique disponible sur votre téléphone (TouchID, FaceID, Biometrics).

Exemple
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
check biometrics supported

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