My Blog

Writings from Parashar

Sharing insights, stories, and ideas on web development, technology, and more.

My Featured Posts

free-ai-support-bot

Saturday, January 24, 2026

How I designed and built an AI support chatbot using only open or free-tier tools and why this architecture scales.
authorImage

Parashar

How I created a Free Stack AI Support System
How I created a Free Stack AI Support System
January 24, 2026

How I designed and built an AI support chatbot using only open or free-tier tools and why this architecture scales.

ParasharParashar
Implementing True Idle Timeout with Refresh Token Rotation in Next.js + NextAuth
Implementing True Idle Timeout with Refresh Token Rotation in Next.js + NextAuth
December 22, 2025

In this post, I walk through a production-ready approach to implementing interaction-based idle timeout alongside cross-tab–safe refresh token rotation in a Next.js (App Router) application. We’ll look at how to separate concerns between user inactivity and token expiry, avoid common race conditions across browser tabs, and handle edge cases like page reloads during token refresh—without relying on localStorage or exposing sensitive auth logic. This approach works with NextAuth, not against it, and fills critical gaps until first-class support arrives.

ParasharParashar