#ERROR: MISSING_NEXTAUTH_API_ROUTE_ERROR NextAuth in Next.js 13.4

1 messages · Page 1 of 1 (latest)

visual ingot
#

When using latest NextAuth with Next.js 13.4 (app router), I'm getting 'MISSING_NEXTAUTH_API_ROUTE_ERROR'. This error says that I need to put the auth page inside 'pages' directory whereas this should no longer be true for the version of Nextjs I'm using.
NextAuth has also state that they support the app router now.

How this should be fixed?

tribal geodeBOT
#

Hi @visual ingot. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: