Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question