Skip to content

Instantly share code, notes, and snippets.

View fauzanss's full-sized avatar
💭
I may be slow to respond.

Akhmad Fauzan fauzanss

💭
I may be slow to respond.
  • Jakarata, ID
View GitHub Profile
@fauzanss
fauzanss / passport.js
Created September 12, 2017 12:08 — 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',