0.1.0 • Published 4 years ago

kunlatek-login v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

#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)

##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);