Upgrade Guide (NextAuth.js v5)
next-auth/middleware
Protecting Resources
// @/middleware.ts export { auth as middleware } from "@/auth" export const config = { matcher: [ "/issues/new" ] }