Work with Thirdrocktechkno
As a tester, I have been exploring different tools to convert manual testing into automation process. So, next time I don’t have to execute the same things again manually.
We always want to access currentUser in all the controllers. I have seen many people use the token to fetch the user all the time.
Instead I think it’s better we set the currentUser in the middleware at the time of authentication.