Hello everyone,
I’ve made an http auth api for my frontend. I have a problem were my auth files are requiring authentication for the entire api. This is a problem because it prevents users from creating accounts on my frontend. I haven’t noticed the issue until I deployed it and paired it with my frontend.
^ this is what my server.js file looks like. I’m pretty sure that
app.use(basicAuth);
and app.use(‘/users’, require(‘./Authentication/users.controller));
are causing the problem. Is there a way to prevent this from requiring authentication for my entire api? Could I dyamnically use app.use(basicAuth);
so it only requires authentication on certaim requests/routes.Thanks for all your help!!