shitcorp / discord-bot-dashboard

The npm package for using the Discord Bot Dashboard inside your own source code
312 stars 124 forks source link

Error: secret option required for sessions #99

Closed Warredfre closed 2 years ago

Warredfre commented 4 years ago

Hello ! First of all thank you for creating this dashboard!

However I have an error, when I go to the web page it tells me this:

Error: secret option required for sessions at session (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express-session\index.js:200:12) at Layer.handle [as handle_request] (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\index.js:317:13) at D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\index.js:284:7 at Function.process_params (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\index.js:335:12) at next (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\index.js:275:10) at SessionStrategy.strategy.pass (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\passport\lib\middleware\authenticate.js:343:9) at SessionStrategy.authenticate (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\passport\lib\strategies\session.js:75:10) at attempt (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\passport\lib\middleware\authenticate.js:366:16) at authenticate (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\passport\lib\middleware\authenticate.js:367:7)

Thank you in advance for your help !

Warredfre commented 4 years ago

So I wonder where to get the code for "SESSION_SECRET"

Warredfre commented 4 years ago

You can Close This Thx

julianYaman commented 4 years ago

Hello, the issue is now fixed in the newest development version of the dashboard. This issue will be closed after the the-epic-gamer-branch will be merged to the master branch.

Huskydog9988 commented 2 years ago

The project has comepletly changed its codease and this is no longer valid.