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
import re | |
''' | |
Make sure to put | |
#F | |
as a comment at the end of lines that contain a function call that don't also contain an assignment (=). | |
''' | |
python_file = 'file.py' | |
work_file = None |
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
var User = require('../models/user'); | |
var jwt = require('jsonwebtoken'); | |
var config = require('../config/config'); | |
var request = require('request-promise-native'); | |
generateToken = user => { | |
return jwt.sign( | |
{ id: user.id, username: user.username }, | |
config.jwtSecret, | |
{ |