Coding-Coach / coding-coach-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Protecting private endpoints

crysfel opened this issue · comments

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