Narendra Maurya·Feb 6, 2021JWT Authentication and Authorization middleware with Passport and Node Express and MongoDB.It took me a long time to create a middleware with which we can protect API routes based on the user’s role. After going through the…