# login-widget-secure

> Simple tool for secure data exchange and mobile qr code login.

Latest version **1.0.1** (published 2019-07-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install login-widget-secure
pnpm add login-widget-secure
yarn add login-widget-secure
bun add login-widget-secure
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-07-05 |
| First published | 2019-07-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vladislav Arkavenko |
| Maintainers | someone0097 |

## Links

- npm: https://www.npmjs.com/package/login-widget-secure
- npm.io page: https://npm.io/package/login-widget-secure

## Dependencies (2)

- [react-native-camera](https://npm.io/package/react-native-camera.md) ^2.11.0
- [react-native-qrcode-scanner](https://npm.io/package/react-native-qrcode-scanner.md) ^1.2.1

## Recent versions

- 1.0.1 (latest) — 2019-07-05
- 1.0.0 — 2019-07-02

## README

#Installation:

###Android:

1. Add the following code to the AndroidManifest.xml:
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

2.  Insert the following line in android/app/build.gradle:
android {
  ...
  defaultConfig {
    ...
    missingDimensionStrategy 'react-native-camera', 'general' <-- insert this line
  }
}

###IOS:
1.

###Both:
react-native link react-native-camera

#Usage:

1. Add "YourCustomScanQRScreen" Component to createStackNavigator's routeConfigMap:
createStackNavigator({
  ...
  ScanQR: YourCustomScanQRScreen
});

2. In YourCustomScanQRScreen wrap ScanQRScreen component and provide apiKey and loginCallback(optional) props.
You can generate your apiKey by http://206.189.21.59/api/generateKey .
loginCallback receive error as first parameter and user object as second.

3. To open ScanQRCode screen you only need to: navigation.navigate('ScanQR');

###P.S. If have any problem, refer to the example or open issue.

---
_Source: https://npm.io/package/login-widget-secure · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
