Skip to content

Instantly share code, notes, and snippets.

View alifaaz's full-sized avatar

alifaaz

View GitHub Profile
<?php
use \Firebase\JWT\JWT;
$keyy = "mymimokeyhahahah";
$tokey = array(
"iss" => "me.org",
"aud" => "me.com",
"iat" => 1356999524,
@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')