@bridgerakol/authenticate
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

#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

Readme

Keywords

Package Sidebar

Install

npm i @bridgerakol/authenticate

Weekly Downloads

0

Version

1.3.0

License

ISC

Unpacked Size

29.1 kB

Total Files

18

Last publish

Collaborators

  • bridgeraiot