keystonejs / create-keystone-app

CLI app that makes it easy to get started with Keystone
https://keystonejs.com/tutorials/getting-started-with-create-keystone-next-app
MIT License
38 stars 10 forks source link

Session secret should remain the same between hot reloads #372

Open flexdinesh opened 1 year ago

flexdinesh commented 1 year ago

Session secret was recently changed from static to dynamic.

The intention is good that static strings should not be used as session secrets and they should be crypto strings. But since changes hot reload the server, the session secret gets reset between hot reloads and forces the user to login again into their Admin UI for every single change during development. We should either figure out how to persist the session secret during hot reloads or revert back to the previous approach of using static string as a secret.