I am currently working on integrating JWT authorization for NATS message broker into NestJS, using NestJS app on both sides (requester & responder). My understanding is that there are two essential parts needed to make this integration successful in NestJS:
- Adapt the Nest NATS client to include missing options such as userJWT and nonceSigner callback.
- Implement logic to generate NATS users and retrieve them from a custom authentication API.
Is there a straightforward way to enhance the NestJS NATS client by incorporating the necessary missing client options? The affected areas appear to be NatsOptions, ClientOptions, ClientNats, and ClientProxy. Any suggestions are appreciated. Thanks.