Auth0 does not work with Next.js app router

Hi,
I faced the same problem.
Even in a project that is using App Router, legacy “pages/api” directory works.

Example code

Please try creating a route in the API directory.