Either using node server.js or nodemon server.js to run the app, whenever code changes forcing a restart of the application the currently logged in user is forced to re-authenticate.
Expected behavior:
Because passport is configured to us cookies and the nonceLifetime is set to a day, I expect the user to still be authenticate.
Actual behavior:
When code changes and nodemon reloads the application the user is forced to re-authenticate
Steps taken to resolve
Tried to do everything listed here & here to ensure that we are not using in memory session state but rather cookie state to store the auth token.
Either using
node server.js
ornodemon server.js
to run the app, whenever code changes forcing a restart of the application the currently logged in user is forced to re-authenticate.Expected behavior:
nonceLifetime
is set to a day, I expect the user to still be authenticate.Actual behavior:
nodemon
reloads the application the user is forced to re-authenticateSteps taken to resolve