coding-coach-api
coding-coach-api copied to clipboard
Protecting private endpoints
Description
We need to setup a middleware to protect our private endpoints. We are using auth0 to handle authentication.
We need to make sure our endpoints are not accessible if a JWT is not provided or invalid. If the token is valid, then we need to return the private data