TL;DR —
In this article, we use Express-Gateway to use jwt token authentication for users. We are going to use an API gateway to authenticate the user in the request before performing the desired curd-service operation. In the first part, I show how should we configure the express gateway to perform the jwt authentication and pass the claims to the service endpoints. If you only want the express-gateway jwt part, go to Adding the authenticated data to the request at the end of the article, there is a complete config.
[story continues]
Written by
@vahid
potential programmer
Topics and
tags
tags
microservices|api-gateway|authentication|express-gateway|express|javascript|jwt|progra
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: BXbqziAvC2490Ke3c4g8ifDAbTmF0_gBEQ3gVp87YSQ
