# bap-login-social

> Bap login social. This is package login social via firebase and basic login.

Latest version **1.0.2** (published 2019-04-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install bap-login-social
pnpm add bap-login-social
yarn add bap-login-social
bun add bap-login-social
```

## 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.2 |
| Published | 2019-04-09 |
| First published | 2019-04-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 28.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | daulq |
| Maintainers | daulq |
| Keywords | bap, login, social, login, social, firebase, authenticaiton, firebase |

## Links

- npm: https://www.npmjs.com/package/bap-login-social
- npm.io page: https://npm.io/package/bap-login-social

## Dependencies (3)

- [request](https://npm.io/package/request.md) ^2.88.0
- [firebase-admin](https://npm.io/package/firebase-admin.md) ^7.2.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.4

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-04-09
- 1.0.1 — 2019-04-09
- 1.0.0 — 2019-04-09

## README

# Express BAP CLI
This is package support login social (Facebook, Google, Twitter, Github, Microsoft v.v)
## Required
- nodejs >=8.0
## How to install
```
    (sudo) npm install --save bap-login-social
```
## How to work

### Platform supported
- Login social via firebase
    - Facebook
    - Google
    - Twitter
    - Github
    - Yahoo JP
    - LINE
    - Microsoft
- Login social basic
    - Facebook
    - Google
    - Yahoo JP
    - LINE
### How to use
- Step 1
```
   let loginSocial = require('bap-login-social')({ type: 'firebase', serviceAccount });
```
| Variable      | Description   |
| ------------- | ------------- |
| type  | This is type login social. Approve: <code>firebase, basic</code>. Default: <code>firebase</code>  |
| serviceAccount  | This is service Account download in <a href="">console<a> of firebase  |
- Step 2
```
    const user = await loginSocial.verify({ uid, type, accessToken })
```
| Variable      | Description   |
| ------------- | ------------- |
| uid  | UID of user firebase for login `Facebook, Google, Twitter, Github, Microsoft`. Default: `null`  |
| type  | Type login. Allow `Facebook, Google, Twitter, Github, Microsoft, LINE, Yahoo JP`  |
| accessToken | This is access token for login `LINE, Yahoo JP`. Default `null` |

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