Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

rn-local-authentication

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Issues
File Explorer

Advanced tools

rn-local-authentication

The library helps you to authenticate users biometrically

    1.2.5latest
    GitHub

Version published
Maintainers
1
Weekly downloads
530
decreased by-41.44%

Weekly downloads

Readme

Source

React Native Local Authentication

The library helps you to authenticate users biometrically natively on both iOS and Android devices. For iOS LocalAuthentication Framework is used, and for android: androidx.biometric:biometric framework (BiometricPrompt, BiometricManager)

Inspired by react-native-fingerprint-scanner and Android BiometricPrompt class that manages a system-provided biometric prompt.

Under construction

Platforms Supported

Getting Started

Read Getting Started Guide. If any step seems unclear, please create a detailed issue.

TOC

Versioning

Breaking History:

  • 1.0.0 - first release

Usage

iOS example

Import LocalAuthentication from rn-local-authentication and use it like so:

import React from 'react'; import { View } from 'react-native'; import LocalAuthentication from 'rn-local-authentication'; // ... class MyComponent extends React.Component { componentDidMount() { LocalAuthentication.authenticateAsync({ reason: "Authorize please!" }).then(response => { if (response.success) { console.log('Authorized successfully!'); } else { console.log(`Something went wrong. Error: ${response.error}`); } }) } render() { return (<View />); } // ... }

link to example launch

License

MIT

Keywords

FAQs

Last updated on 01 Feb 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc