A reusable password protection module for Next.js applications with secure token-based authentication