March 2020
Intermediate to advanced
392 pages
10h 10m
English
For this service to connect the right user to the order, we need to be able to identify who is sending the request. As we discussed in Chapter 7, Writing the User Service, we are using a JWT for identification. In this service, we simply need to verify the payload against its signature. Luckily, the provided packages will do that for us.
Thanks to the JWT packages we installed with the template, we do not need to do much here. For convenience, let's create a setup file just like we did in Chapter 7, Writing the User Service. Follow these steps:
$ open .env
Read now
Unlock full access