This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const passport = require('passport'); | |
const JwtStrategy = require('passport-jwt').Strategy; | |
const ExtractJwt = require('passport-jwt').ExtractJwt; | |
const mongoose = require('mongoose'); | |
const User = mongoose.model('users'); | |
const jwtOptions = { | |
jwtFromRequest: ExtractJwt.fromHeader('Authorization'), | |
secretOrKey: process.env.SECRET_KEY | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// server.js | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
function date(req,res,next) { | |
console.log("Date is", Date()); | |
next() | |
} | |
function foo1(req,res,next) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="container"> | |
<h1>TWITCH STREAMERS</h1> | |
<ul class="parent" id="parent"> | |
</ul> | |
</div> |