kunlatek-login
v0.1.0
Published
> Generic Login dealing with multiple databases over kunlatek-crud package and multiple user types as email, username and uniqueId (such as CPF and CNPJ)
Downloads
2
Readme
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);