# kunlatek-login

> > Generic Login dealing with multiple databases over kunlatek-crud package and multiple user types as email, username and uniqueId (such as CPF and CNPJ)

Latest version **0.1.0** (published 2020-05-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install kunlatek-login
pnpm add kunlatek-login
yarn add kunlatek-login
bun add kunlatek-login
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-05-03 |
| First published | 2020-05-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | Ryzzan Salman |
| Maintainers | kunlatek |

## Links

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

## Dependencies (6)

- [cpf](https://npm.io/package/cpf.md) ^2.0.1
- [cnpj](https://npm.io/package/cnpj.md) ^3.0.0
- [uniqid](https://npm.io/package/uniqid.md) ^5.2.0
- [mongoose](https://npm.io/package/mongoose.md) ^5.9.11
- [kunlatek-crud](https://npm.io/package/kunlatek-crud.md) ^0.1.2
- [email-addresses](https://npm.io/package/email-addresses.md) ^3.1.0

## Recent versions

- 0.1.0 (latest) — 2020-05-03

## README

#[KUNLATEK-LOGIN](https://gitlab.com/kunlatek-quickstart/nodejs/packages/login)
> Generic Login dealing with multiple databases over kunlatek-crud package and multiple user types as email, username and uniqueId (such as CPF and CNPJ)

##Installing
```
npm install --save kunlatek-login@latest
```

##Last updates
- Dealing with login using kunlatek-crud package and multiple user types as email, username and uniqueId (such as CPF and CNPJ)

##Using Kunlatek LOGIN
###Login
```
const login = require('../index');

const queryParams = {
    user: 'testingUsername',
    password: 'testingassword'
}

const connectionParams = {
    connectionString: 'mongodb+srv://<domain>:<password>@domaincluster0-b0pfr.gcp.mongodb.net/test?retryWrites=true&w=majority',
    databaseName: 'mongodb'
}

login.login(queryParams, connectionParams);
```

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