Skip to content

Instantly share code, notes, and snippets.

View Scout007-27's full-sized avatar

Kousheek Mahendaran Scout007-27

View GitHub Profile
@Scout007-27
Scout007-27 / passport.js
Created April 2, 2023 18:09 — 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',