Auth.js v5 Setup
Auth.js v5 is fully compatible with the App Router and Edge Runtime. Configure providers in auth.ts, export the { handlers, signIn, signOut, auth } helpers, and protect routes with a middleware.ts file.
Auth.js v5 is fully compatible with the App Router and Edge Runtime. Configure providers in auth.ts, export the { handlers, signIn, signOut, auth } helpers, and protect routes with a middleware.ts file.