Dec 10, 2025 · 6 min read · Introduction Have you ever implemented authentication in your Express.js app, only to find that users aren't being redirected to their intended destination after logging in? You're not alone. This is one of those frustrating bugs that seems like it s...
Join discussionJul 11, 2025 · 14 min read · Making certain route to be accessible only to authenticated user is one thing I almost always do in express. However, I usually cobble them together from multiple blog, stack overflow, and and Gen AI. And I forget about it and had to do it all over a...
Join discussion
Jan 17, 2025 · 4 min read · Implementing Single Sign-On (SSO) in your application enhances user experience by allowing seamless access across multiple platforms with a single set of credentials. In Node.js applications, the Passport middleware simplifies this process by providi...
Join discussion
Dec 21, 2024 · 4 min read · User authentication is essential for protecting sensitive user data and ensuring secure access to resources. This Level 4 user authentication example uses bcrypt, Passport.js, and PostgreSQL while leveraging environment variables for enhanced securit...
Join discussion
Oct 16, 2024 · 9 min read · About The goal of this article is to complement the lesson from The Odin Project curriculum. Initially was written for personal use to try to understand better how this work and make information stick to my brain, but I chose to make it public hoping...
Join discussion
Sep 2, 2024 · 3 min read · In this part of our guide, we will walk you through the process of integrating Facebook OAuth for user authentication. This step-by-step tutorial will help you create a Facebook OAuth client, configure the necessary settings, and implement the Facebo...
Join discussion
Aug 30, 2024 · 12 min read · As a startup, you’re always racing against time. Speed is crucial—you need to build, launch, and iterate quickly. That’s why many startups opt to outsource their authentication systems to third-party providers like Auth0, Firebase, or Supabase. These...
BCMandy and 1 more commented
Aug 15, 2024 · 6 min read · 1.Folder Structure project-root/ │ ├── config/ # Configuration files │ ├── db-connection.js # Database connection setup │ ├── passport-config.js # Passport.js configuration │ ├── session-config.js # Session configurati...
TTech commented
Jun 24, 2024 · 4 min read · 📝0.1 ./app.js // Load environment variables from .env file require('dotenv').config({ path: './.env' }); // Import route handlers var indexRouter = require('./routes/index.routes'); var userRouter = require('./routes/user.routes'); // Create an Ex...
Join discussion