Authentication with JWT in Node.js
Learn how JSON Web Tokens work and build a complete login system in Node.js and Express: password hashing, access tokens, auth middleware, roles and refresh tokens.
Tech lead and full-stack engineer, Bengaluru
I lead full-stack delivery for hospitality and SaaS products, from system architecture and API design to UI, third-party integrations and production deployment, across web, mobile and desktop.
Learn how JSON Web Tokens work and build a complete login system in Node.js and Express: password hashing, access tokens, auth middleware, roles and refresh tokens.
Breadth-first search and depth-first search explained with tested JavaScript: how each one walks a graph, shortest paths in unweighted graphs, connected components, cycle detection, topological sort, number of islands…
How environment variables work in Next.js 16: .env, .env.local and per-environment files, load order, server-only secrets vs NEXT_PUBLIC_ variables, why public values are frozen at build time, validation, and setting…
Learn SQL joins with one small shop database: INNER, LEFT, RIGHT, FULL OUTER, CROSS and SELF joins, finding rows with no match, joining many tables, ON vs WHERE, and the duplicate-row trap, with every query run on…
Understand JavaScript scope and closures: global, function and block scope, the scope chain, lexical scope, closures for private state, function factories, once, memoize and debounce, the classic loop bug, and…