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
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