0.1.0 • Published 7 years ago

identity-desk-local v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

identity-desk-local

Local authenticator for Identity Desk

Installation

$ npm install identiy-desk-local

Usage

const identityDesk = require('identity-desk');
const LocalAuthenticator = require('identity-desk-local');

// use it with the default redirects
identityDesk.use('local', new LocalAuthenticator());

// or provide your own redirects
identityDesk.use('local', new LocalAuthenticator({
  successRedirect: '/',
  failureRedirect: '/login, // overrides global failure redirect set in Identity Desk instance
}));