https://nextjs.org/docs/advanced-features/middleware Advanced Features: Middleware (Beta) | Next.js Learn how to use Middleware in Next.js to run code before a request is completed. nextjs.org import { NextFetchEvent, NextRequest, NextResponse } from "next/server"; import jwtDecode from "jwt-decode"; import CustomJwtPayload from "@/util/jwt/CustomJwtPayload"; // 리프레시 토큰 관리를 위한 미들웨어 제작 export fun..