Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@bridgerakol/authenticate

bridgerakol36ISC1.3.0TypeScript support: included

Boilerplate code for Authentication

Authentication

readme

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