# quickey-react-sdk

> SDK quickey for react.js

Latest version **1.1.0** (published 2022-02-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install quickey-react-sdk
pnpm add quickey-react-sdk
yarn add quickey-react-sdk
bun add quickey-react-sdk
```

## 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.1.0 |
| Published | 2022-02-21 |
| First published | 2021-06-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 102.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | quickey team |
| Maintainers | efrizal_analisa |
| Keywords | SDK |

## Links

- npm: https://www.npmjs.com/package/quickey-react-sdk
- npm.io page: https://npm.io/package/quickey-react-sdk

## Dependencies (1)

- [react-icons](https://npm.io/package/react-icons.md) ^4.2.0

## Recent versions

- 1.1.0 (latest) — 2022-02-21
- 1.0.8 — 2021-08-03
- 1.0.7 — 2021-08-03
- 1.0.6 — 2021-08-03
- 1.0.5 — 2021-08-03
- 1.0.4 — 2021-06-03
- 1.0.3 — 2021-06-02
- 1.0.2 — 2021-06-02
- 1.0.1 — 2021-06-02
- 1.0.0 — 2021-06-02

## README

# QuickeySDK - React.Js
A Login Management System for Application

## Getting Started
```
npm i quickey-react-sdk
```

## How to use
```
import Quickey from 'quickey-react-sdk'

const { GoogleLogin, FacebookLogin, LinkedInLogin, SmsOTPLogin } = Quickey
```
### Get Social Login Data

Use it normally like react button component with specified props
```
  const handleLogin = (data) => {
    /** 
     * example data output
     * 
     * {
            email: 'your social login email',
            provider: 'googleLogin',
        } 
     * 
        do your logic here
     */  
    }

    <GoogleLogin apiKey={"YOUR API KEY"} onSignIn={handleLogin} />
```

Or if using facebook login, you must attach facebokk App Id
```
<FacebookLogin facebookAppId={"YOUR FACEBOOK APP ID"} apiKey={"YOUR API KEY"} onSignIn={handleLogin} />

```

### Get OTP Login Data

Use it normally like react button component with specified props
```
  const handleLogin = (data) => {
    /** 
     * example data output
     * 
     * {
            appId: 'your appId',
            phone: 'your phone login number',
            otp: 'your otp login code',
            expires: 'your otp login code expiring time'
        } 
     * 
        do your logic here
     */  
    }

    <SmsOTPLogin apiKey={"YOUR API KEY"} phone={"YOUR PHONE NUMBER"} onSignIn={handleLogin} />
```

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