A production-ready authentication system with local credentials, GitHub OAuth, session management, and role-based access control.
Email & password login with Passport.js local strategy and bcrypt hashing.
One-click sign-in with GitHub using OAuth 2.0 via Passport.js.
User and admin roles with protected routes and middleware-level authorization.
Express sessions with admin ability to view and terminate active user sessions.
7 technologies
JS runtime
web framework
type safety
auth middleware
templating
social login
session state
Click any value to copy