TL;DR: In this article, I will explain how you can protect your NestJS based API with Auth0. Besides that, the Auth0 Management API is included to receive the current logged in user's profile. If you don't want to read the article, you can directly head over to the GitHub repository.
Last week I struggled with connecting Auth0 to my NestJS project. I wanted to restrict certain endpoints of my API to be publicly available. Since I didn't want to store user data and passwords on my own server, I decided to use Auth0.
I have been using NestJS as a framework for my backend applications for some time now. NestJS makes it very easy for new users to start.