---
title: "#passportjs articles | Hashnode"
description: "Explore 18 articles tagged #passportjs on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/passportjs"
---

Tag

# #passportjs

18 posts · 2 followers

[NHero](https://hashnode.com/@nhero) · [May 23](https://hashnode.com/posts/google-auth-express-ts/6a11c2d11a3cf7bffc300f2e)

### [Google Login in Express with PassportJS & JWT](https://nhero.hashnode.dev/google-auth-express-ts?utm_source=hashnode&utm_medium=feed)

Google Login implementation in typescript , expressjs using passportjs and jsonwebtoken

4 min read · [nhero.hashnode.dev](https://nhero.hashnode.dev/google-auth-express-ts?utm_source=hashnode&utm_medium=feed)

[Abinash Dash](https://hashnode.com/@abidev2003) · [Dec 10, 2025](https://hashnode.com/posts/fixing-the-redirect-after-login-bug-in-expressjs-passportjs/693978bf270a06ce31156a9c)

### [Fixing the "Redirect After Login" Bug in Express.js + Passport.js](https://redirect-after-login-bug-in-express.hashnode.dev/fixing-the-redirect-after-login-bug-in-expressjs-passportjs?utm_source=hashnode&utm_medium=feed)

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...

6 min read · [redirect-after-login-bug-in-express.hashnode.dev](https://redirect-after-login-bug-in-express.hashnode.dev/fixing-the-redirect-after-login-bug-in-expressjs-passportjs?utm_source=hashnode&utm_medium=feed)

[Alexander Septian Arfeprakosa](https://hashnode.com/@alexdoff) · [Jul 11, 2025](https://hashnode.com/posts/how-to-protect-route-in-expressjs-using-passport/6870d6bdd05a4b696fe160f7)

### [How to protect route in ExpressJS using Passport](https://alexdoff.hashnode.dev/how-to-protect-route-in-expressjs-using-passport?utm_source=hashnode&utm_medium=feed)

This article explain how to make certain route only accessible if user is logged in. User json web token and passportjs as a guard

14 min read · [alexdoff.hashnode.dev](https://alexdoff.hashnode.dev/how-to-protect-route-in-expressjs-using-passport?utm_source=hashnode&utm_medium=feed)

[Kshitiz Acharya](https://hashnode.com/@imxitiz) · [Jan 17, 2025](https://hashnode.com/posts/single-sign-on-sso-implementation-using-passportjs-in-typescript/678a9e47203cd76a71e7d6e5)

### [Single Sign-On (SSO) Implementation Using Passport.js in TypeScript](https://sachinthapa.hashnode.dev/single-sign-on-sso-implementation-using-passportjs-in-typescript?utm_source=hashnode&utm_medium=feed)

Learn how to implement Single Sign-On (SSO) in Node.js using Passport.js and TypeScript for enhanced user experience and secure authentication

4 min read · [sachinthapa.hashnode.dev](https://sachinthapa.hashnode.dev/single-sign-on-sso-implementation-using-passportjs-in-typescript?utm_source=hashnode&utm_medium=feed)

[Mohammed Shakeel](https://hashnode.com/@mdshakeel) · [Dec 21, 2024](https://hashnode.com/posts/user-authentication-level-4/67660c2e1a0dfaac4875d970)

### [User Authentication Level 4](https://master-webdevelopment.hashnode.dev/user-authentication-level-4?utm_source=hashnode&utm_medium=feed)

Protecting Sensitive Data Using bcrypt, Passport.js, and Best Practices for Environment Variables

4 min read · [master-webdevelopment.hashnode.dev](https://master-webdevelopment.hashnode.dev/user-authentication-level-4?utm_source=hashnode&utm_medium=feed)

[porobertdev](https://hashnode.com/@porobertdev) · [Oct 16, 2024](https://hashnode.com/posts/sessions-cookies-and-authentication/671017e900a7a41ccd06d3bc)

### [Sessions, Cookies and Authentication](https://blog.porobert.dev/sessions-cookies-and-authentication?utm_source=hashnode&utm_medium=feed)

Learn about sessions, cookies, and authentication with NodeJS and ExpressJS. Understand their implementation for personalized web experiences

9 min read · [blog.porobert.dev](https://blog.porobert.dev/sessions-cookies-and-authentication?utm_source=hashnode&utm_medium=feed)

[Taiwo Ogunola](https://hashnode.com/@unicdev) · [Sep 2, 2024](https://hashnode.com/posts/end-to-end-guide-to-building-a-reliable-authentication-system-for-a-startup-mvp-part-2/66d599a9e1eae11228a56181)

### [End-to-end Guide to building a Reliable Authentication System for a Startup MVP - Part 2](https://unicdev.hashnode.dev/end-to-end-guide-to-building-a-reliable-authentication-system-for-a-startup-mvp-part-2?utm_source=hashnode&utm_medium=feed)

Comprehensive guide to adding Facebook OAuth to your authentication system with React and Node.js

3 min read · [unicdev.hashnode.dev](https://unicdev.hashnode.dev/end-to-end-guide-to-building-a-reliable-authentication-system-for-a-startup-mvp-part-2?utm_source=hashnode&utm_medium=feed)

[Taiwo Ogunola](https://hashnode.com/@unicdev) · [Aug 30, 2024](https://hashnode.com/posts/end-to-end-guide-to-building-a-reliable-authentication-system-for-a-startup-mvp-part-1/66d1cc1658c2d29e32c3fc1c)

### [End-to-end Guide to building a Reliable Authentication System for a Startup MVP - Part 1](https://unicdev.hashnode.dev/end-to-end-guide-to-building-a-reliable-authentication-system-for-a-startup-mvp-part-1?utm_source=hashnode&utm_medium=feed)

Implementing a reliable and scalable authentication system with React and Node.js - Local Authentication

12 min read · [unicdev.hashnode.dev](https://unicdev.hashnode.dev/end-to-end-guide-to-building-a-reliable-authentication-system-for-a-startup-mvp-part-1?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/end-to-end-guide-to-building-a-reliable-authentication-system-for-a-startup-mvp-part-1/66d1cc1658c2d29e32c3fc1c)

[Ayush Kumar](https://hashnode.com/@krayush1109) · [Aug 15, 2024](https://hashnode.com/posts/passportjs-authentication-local-strategy/66be2dc7b20fe5e2e7734a1d)

### [Passport.js : Authentication - Local Strategy](https://krayush1109.hashnode.dev/passportjs-authentication-local-strategy?utm_source=hashnode&utm_medium=feed)

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...

6 min read · [krayush1109.hashnode.dev](https://krayush1109.hashnode.dev/passportjs-authentication-local-strategy?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/passportjs-authentication-local-strategy/66be2dc7b20fe5e2e7734a1d)

[Ayush Kumar](https://hashnode.com/@krayush1109) · [Jun 24, 2024](https://hashnode.com/posts/02-config-authentication-login-logout-forgot/6679769c6590fc82375ca919)

### [02 config: Authentication- Login, Logout, Forgot](https://krayush1109.hashnode.dev/02-config-authentication-login-logout-forgot?utm_source=hashnode&utm_medium=feed)

📝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...

4 min read · [krayush1109.hashnode.dev](https://krayush1109.hashnode.dev/02-config-authentication-login-logout-forgot?utm_source=hashnode&utm_medium=feed)
