Answers for "generate jwt key"

13

generate jwt secret key

node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
Posted by: Guest on September-22-2020
1

jwt generate token

const genToken = (id) => {
  return JWT.sign({ id }, process.env.JWT_SECRET)
}
Posted by: Guest on April-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language