0.2.0 • Published 1 year ago

react-native-fingerprint-bureau v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

react-native-fingerprint

identify user devices

Installation

React Native Fingerprint SDK

Usage

import {
  initialize_fingerprint_sdk,
  submitFingerPrintData,
} from '@partha108paul/react-native-fingerprint';

// ...

React.useEffect(() => {
    initialize_fingerprint_sdk(
      'client_id'
      'environment',
    );
}, []);
// environment: 'sandbox'/'production'

// On Button Click
onPress={() => {
          submitFingerPrintData(session_id, user_id, flow)
            .then(res => {
              // Save in State
              console.log('FINGERPRINT', res);
            })
            .catch(e => console.log('FINGERPRINT', e));
        }}
// session_id: any alphanumeric number, need to change everytime API is triggered
// user_id: any unique id for the user like phone, email
// flow: flow name, e.g. "fingerprint", "user login" etc

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Note

client_id will be provided separately


Made with create-react-native-library