there are several issues with the same theme, but I could not solve my problem.
Error: Route.post() requires callback functions but got a [object Undefined] at R
Always ensure the export name is the same as the import name
//Function Exported exports.isAuthenticatedUser = catchAsyncErrors(async(req, res, next) => { } //Function Imported const {isAuthenticatedUser} = require('../middlewares/auth');