Kazi Rahamatullah
Kazi Rahamatullah
AboutProjectsBlogContact
UsesBooks
ResumeView CV
Kazi Rahamatullah

© Copyright 2026 Kazi Rahamatullah

AboutProjectsBlogBooksUses
Twitter/XGitHubProduct HuntCodeSandbox

Featured Blog Posts

Articles, guides, and resources on web development, design, blockchain, open source, and career tips.

Filtered by tag: Next-Auth

Next.js Authentication With Next-Auth V5 || Credential Provider

Real-world Next-Auth v5 Credentials provider in Next.js App Router — email/password login, authorize function, bcrypt password matching, mock user database, Server Actions, and client-side error UX.

Jul 6, 202614 min read0 views
Read Article

Next.js Authentication With Next-Auth V5 || Google & GitHub

Step-by-step Next-Auth v5 setup in Next.js App Router — Google and GitHub OAuth only. Covers auth.ts, LoginForm, Server Actions, [...nextauth] route, protected pages, session UI, and next.config image patterns.

Jul 6, 202611 min read0 views
Read Article

Refresh Token Rotation With Next-Auth V5 || Managing Tokens With A Custom Backend

Implement refresh token rotation in Next.js with Next-Auth v5 and a custom backend — access/refresh JWT fundamentals, /login and /refresh endpoints, JWT and session callbacks, expiry checks, and seamless token renewal.

Jul 6, 202618 min read0 views
Read Article

Next.js Authentication || Register User To MongoDB With Next-Auth V5

Register users to MongoDB with Mongoose in Next.js App Router — registration UI, /api/register route, bcrypt hashing, user schema, createUser queries, and Next-Auth v5 Credentials login integration.

Jul 6, 202615 min read0 views
Read Article
Next.js Middleware

Next.js Middleware

Complete Next.js Middleware guide — request/response interception, protected routes, matchers, Next-Auth v5 integration, public vs private routing, API security, i18n, and proxy.ts migration for Next.js 16.

Jul 6, 202618 min read0 views
Read Article

Subscribe to my newsletter

Stay up to date and get notified when I share new contents.

No spam ever, unsubscribe anytime