saniaali224 / node-mongo-swagger-awss3-boilerplate

using es6
3 stars 0 forks source link

JWT_SECRET miss match in userSignin.js #1

Open David-mwas opened 5 days ago

David-mwas commented 5 days ago

in userSignin.js the jwt env key should be process.env.JWT_SECRET instead of process.env.JwtSecret .This raises an error during signin saying "Error: secretOrPrivateKey must have a value at module.exports [as sign] (C:\Users\dmwas\Desktop\gitprod\node-mongo-swagger-awss3-boilerplate\node_modules\jsonwebtoken\sign.js:111:20)
Error: Unable to generate Token." so the env key should be process.env.JWT_SECRET

fg85 commented 5 days ago

thanks got it

David-mwas commented 3 days ago

Thanks the boilerplate is so great