#bridgerakol #authenticate
Quick Start
Install the authenticate module
$ npm install @bridgerakol/authenticate
Import the module
const authenticate = require("@bridgerakol/authenticate");
let auth = new authenticate.Authenticate({
host: <Database Host>,
port: <Database PORT>,
user: <USERNAME>,
password: <PASSWORD>,
database: <NAME>
});
Get the login token:
auth.login({
email: '',
password: '',
jwt_secret: '',
jwt_token_life: 3600
}).then(console.log)
List of Functionality
- verify
- login
- get_new_token
- forget_password
- reset_password