just-login-bypass
When developing an application that uses Just Login, use this to bypass authentication in dev
A replacement for the just-login-emailer. Instead of emailing you when you click 'Login', it will just log you in as whomever. Don't use this in production. :)
With npm do:
npm install just-login-bypass
api
var bypass =
bypass(core, [...,] [cb])
Takes a just-login-core object.
The last function passed in is used as a callback.
Any other options are ignored, so you can use it instead of the just-login-emailer.
example
index.js
var PROD = !processenvdev || processargv2 === '--dev' var Level = var JustLogin = var customEmails = var emailer = var db = './database'var core =
custom-emailer-opts.js
module { { return 'Copy & paste this into your browser: ' + 'http://example.com/login?token=' + token } var transportOpts = host: "smtp.gmail.com" port: 465 secure: true auth: user: "sender@gmail.com" pass: "pass" var mailOpts = from: 'sender@gmail.com' subject: 'sign in' }