create jwt token with expiration time and without expiration time code example
Example: how to sign a jwt token in js that doesn't expire
var token = jwt.sign({email:'[email protected]',role:'User'}, "Secret", {});
var token = jwt.sign({email:'[email protected]',role:'User'}, "Secret", {});