how to sign a jwt token in js that doesn't expire

JavaScript
var token = jwt.sign({email:'[email protected]',role:'User'}, "Secret", {});

Source

Also in JavaScript: