Skip to content

Instantly share code, notes, and snippets.

View owler11's full-sized avatar

Andy O owler11

View GitHub Profile
@owler11
owler11 / passport.js
Last active December 11, 2020 14:23 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express https://manjeshpv.github.io/mean-development-guide-2021/
// 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',