Strapi upgrade to 4.1.12 and get jwtSecret missing issue

you have to create a plugin js
module.exports = ({ env }) => ({
“users-permissions”: {
config: {
jwtSecret: env(‘JWT_SECRET’),
}
}
})

put the jwt secret in env

and if you want a key then run this cmd worked in my case
node -e “console.log(require(‘crypto’).randomBytes(256).toString(‘base64’));”

1 Like