I have a question for anyone who might know, as I ...
# general
d
I have a question for anyone who might know, as I am impelmenting, I am simply replacing the very basic JWT auth from the NestJS docs. I followed the NestJS implementation guide, and I see that there is a 'GetSession' decorator. From the session, you can do a DB call on the User ID and get the rest I suppose, but you would be doing that over and over again. I am wondering if it is possible to implement the GetUser decorator like from the Passpost strategy. Specifically, a decorator that makes a DB call using Mikro-ORM. This is the passport strategy I was using: https://pastebin.com/QfFXfAHz . I guess the question becomes, how do I set the user on the request chain using this implementation like I did with the Passport Strategy? This might be something I should ask in the NestJS discord, was just wondering if someone already had a solution for this.