generate jwt token in web api code example
Example: jwt generate token
const genToken = (id) => {
return JWT.sign({ id }, process.env.JWT_SECRET)
}
const genToken = (id) => {
return JWT.sign({ id }, process.env.JWT_SECRET)
}