diff --git a/pages/api/auth/[...nextauth].js b/app/api/auth/[...nextauth]/route.js similarity index 95% rename from pages/api/auth/[...nextauth].js rename to app/api/auth/[...nextauth]/route.js index 10fd85f..0daf1a7 100644 --- a/pages/api/auth/[...nextauth].js +++ b/app/api/auth/[...nextauth]/route.js @@ -77,10 +77,11 @@ const options = { } }, pages: { - signIn: '/soumet', - error: '/soumet' + signIn: '/pwopose', + error: '/pwopose' } } -const Auth = (request, response) => +const handler = (request, response) => NextAuth(request, response, options) -export default Auth + +export {handler as GET, handler as POST}