Dear Kelvin,
First at all, thanks so much for all the time and effort you are putting into your Nestjs Series.
I have studied your "Ideas App" series as well as the "nest-commerce" tutorial.
I got seriously stuck in video 6 about Authorization, and after 7 days breaking my head, searching for solutions in Google, Nest Docs, Stackflow and your Github code I decided to contact you for help.
I hope you can take a look into my issue.
I am able to Register and Login any user but I am not able to authorize any route.
When I reproduce the issue I get:
code: 401
message: Unauthorized
After isolating every line, the problem is at @UseGuards(AuthGuard('jwt'))
The code varies from yours because instead of Mongo, I used MySQL
I also set up the directories a little different but mostly I followed your guidelines.
Here is a repo I just built for your convenience:
https://github.com/Domiserver/kmcommerce
Thanks again.
Ron
PS: The .etl, ormconfig.json and .env files are ignored in the repo. If you need them, let me know to upload them.