A
A
Andrey Rudakov2021-12-19 15:01:47
Node.js
Andrey Rudakov, 2021-12-19 15:01:47

At what stage should I check the JWT token?

I have a microservice architecture:
1 - the GRAPHQL layer receives requests from the client to the 2 - RabbitMQ layer (gateway), then they are sent to the 3 - layer to the required microservice.
Where is the best place to implement the logic of user identification by JWT token?
And did you build the above scheme correctly or is there a more correct option?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lssssssssssl, 2021-12-19
@DEMETRA-WORK

Where requests are received, there you need to check. If the token is invalid, then there is no point in sending the request somewhere further

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question