-
I'm just starting out on a personal project using this boilerplate project. I love all of the features because they provide a secure production ready api service, but I am not ready for all of the layers of protection just yet as I am still in the exploratory/development phase. I don't need all of the layers in the way just yet. So is there a simple way to disable api security at least? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured out how to disable authentication. In "\src\middlewares\auth.js" replace the "auth" constant with:
I'm sure this could be done better and with a feature flag and an error catch, but this will not require a bearer token and all api routes are accessible. This is great for local development and testing. |
Beta Was this translation helpful? Give feedback.
I figured out how to disable authentication.
In "\src\middlewares\auth.js" replace the "auth" constant with:
I'm sure this could be done better and with a feature flag and an error catch, but this will not require a bearer token and all api routes are accessible. This is great for local development and testing.