How can I use multiple middleware in express I tried this:
AuthRouter.post("/login", [ValidInfo, limiter], async (req, res) => {
And I get this error:
ReferenceError: Cannot access 'limiter' before initialization
at file:///C:/Users/lokop/Projects/idk/server/Routes/Auth.js:64:39
at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)