Skip to content

Instantly share code, notes, and snippets.

@technotim
technotim / passport.js
Created January 5, 2017 04:20
nodejs authentication mysql passport
// config/passport.js
// -----------------------------------------------------------------------
// Original script from RisingStack nodehero-authentication tutorial
// https://blog.risingstack.com/node-hero-node-js-authentication-passport-js/
// Mysql conversion by manjeshpv
// https://gist.github.com/manjeshpv/84446e6aa5b3689e8b84
// My version minimizes changes needed to the original passport.js file
// Revision Date: 1/4/17
// -----------------------------------------------------------------------
@technotim
technotim / user-mysql.js
Created January 5, 2017 04:13
nodejs authentication user-mysql model
// app/models/user-mysql.js
// -----------------------------------------------------------------------
// Original script from RisingStack nodehero-authentication tutorial
// https://blog.risingstack.com/node-hero-node-js-authentication-passport-js/
// Mysql conversion by manjeshpv
// https://gist.github.com/manjeshpv/84446e6aa5b3689e8b84
// My version minimizes changes needed to the original passport.js file
// Revision Date: 1/4/17
// -----------------------------------------------------------------------