-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Secret should be set #53
Comments
You could try to find the a previous version of meanio before the Instead of requiring linnovate/mean - see how you can add to your package I crated a tag (0.4.x) for meanio - but have not tested - try to see if you An alternative way would be toclone it from git in the time being (untill On Thu, May 14, 2015 at 8:11 PM, Dave Yen [email protected] wrote:
Lior Kesos - http://www.linnovate.net |
Am running through the same issue....did anyone find the answer |
Same issue here. Interestingly, I'm using my own implementation of JWT and have jsonSecret in my config. Probably not related, but would like to use the expressJWT feature soon. |
Bump, also having this issue. |
Hey just a heads up, I got through the 'Error: secret should be set' issue by adding a 'secret' key to the config/env/development.js file: secret: "something secret". I then got another error about a logs folder not existing. So I created that and I'm back in business. Hope that helps someone! |
I fixed it. first, add secret:"something you want" sencond. in ExpressEngine.js
|
@liorkesos This was a linnovate/mean issue that's been fixed if you want to close this. |
I am too facing this issue. |
this issue came when we don't provide a secret.
I triple check my .env file, JWT_SECRET was there then I figured out in my main server.js, the order of file execution was incorrect. first, you should import
then you write the route to access the file.
|
used 5.3.1 version of express-jwt and thanks me later. Since, express -jwt have updated to 6.0.0, but it's difficult to figure out update. If you can figure out it, I will thank you later. |
i have same issue here.. and none of the above solutions worked for me... would appreciate if someone could figure this out... |
I ran 'npm install' late last night and now my server won't start with the following console error. It looks like this this may be related to a recent mean.io update. Please help! My colleague is also running into the same issue after running 'npm install' this morning.
/app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:299
throw err;
^
Error: secret should be set
at module.exports (/app/node_modules/meanio/node_modules/express-jwt/lib/index.js:20:42)
The text was updated successfully, but these errors were encountered: