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

1.0.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

/@bridgera-iot/authenticate/

    Package Sidebar

    Install

    npm i @bridgera-iot/authenticate

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    16.5 kB

    Total Files

    12

    Last publish

    Collaborators

    • biplob.bose
    • bridgeraiot
    • avirup_bridgera
    • sudbiswa
    • bikram_mondal