Skip to content

Instantly share code, notes, and snippets.

@chemry
chemry / passport.js
Created April 3, 2018 11:40 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',