npm install jsonwebtoken
import jwt from "jsonwebtoken"; const privateKey = "li7sdf434gfgh"; const token = jwt.sign("USER", privateKey);
import jwt from "jsonwebtoken"; const privateKey = "li7sdf434gfgh"; var user = jwt.verify("TOKEN", privateKey);