Skip to content
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

Refactor app.js to Remove Duplicate Session Middleware #78

Closed
wants to merge 1 commit into from
Closed

Refactor app.js to Remove Duplicate Session Middleware #78

wants to merge 1 commit into from

Conversation

chikatlarakesh
Copy link

@chikatlarakesh chikatlarakesh commented Oct 18, 2024

This pull request addresses an issue where two instances of the session() middleware were present in app.js, potentially causing conflicts with session management. The second session() middleware already handles the session storage and configuration, including MongoDB integration, making the first one redundant.

Changes Made:

  • Removed the redundant session() middleware setup at the beginning of the app.js file.
  • Ensured that the second instance of the session() middleware, which integrates with MongoDB session storage, remains intact.
  • Verified that Passport.js session persistence is correctly set up.

Fixes issue #72

Impact:

  • This change ensures cleaner code and avoids any possible session conflicts.
  • The app should now properly handle user sessions with the MongoDB store and Passport.js.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Boom! Your pull request just flew into the BlogLog HQ. High fives all around! Our team of tech wizards will check it out and get back to you faster than you can say 'code ninja!' Thanks for leveling up the project!

@chikatlarakesh chikatlarakesh closed this by deleting the head repository Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant