Skip to content

Instantly share code, notes, and snippets.

View alifaaz's full-sized avatar

alifaaz

View GitHub Profile
@alifaaz
alifaaz / samplerest.js
Created June 24, 2018 18:02 — forked from joshbirk/samplerest.js
Sample of using passport w/ mult strategies
var fs = require("fs")
var ssl_options = {
key: fs.readFileSync('privatekey.pem'),
cert: fs.readFileSync('certificate.pem')
};
var port = process.env.PORT || 3000;
var express = require('express');
var ejs = require('ejs');
var passport = require('passport')