Move nextauth to app directory

This commit is contained in:
2023-07-22 13:26:02 +04:00
parent a58e0d587c
commit 6f48dadbe6
@@ -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}