I have a question. My scenario is I have already manual set up which generates JWT token in my local mac terminal. But what I want to do is instead of running that CLI command in mac terminal to generate a token.
Is there any way I can run that CLI command in postman pre-script and retrieve the token from terminal something like that?
So instead of using local CLI terminal I want to use postman to run that CLI command and retrieve the JWT and pass it on to my other requests. Can someone please help on this?
I have seen other posts but all I saw is how to pass JWT token to other requests through pre-script but not running and generating JWT using CLI command.
Unless that terminal command triggers an API call to a resource that returns a JWT as the response - You’re not going to be able to do that in a Postman request.