Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

0xFE9D4A C0dekid

🎯
Focusing
  • Localhost / ::1
View GitHub Profile
@C0dekid
C0dekid / passport.js
Created Feb 25, 2018
Passport.js using MySQL for Authentication with Express
View passport.js
// 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',
You can’t perform that action at this time.