nestjs-with-apollo-federation-gateway
nestjs-with-apollo-federation-gateway copied to clipboard
Validate user on a different microservices
Not an issue but rather an idea. You can send a request to auth service... Internal Graphql/http request are simple to implement but very expensive... Request-response TCP/HTTP/* @nestjs/microservice request from home service to auth service might be a better solution... Or rather, abstract the authentication into a library whereby auth takes place from the library using TCP/HTTP/* request-response microservices request and the logic can be reused in other microservices requiring auth