How can I authenticate my request with a JWT token to get into the routes which I have defined using atlassian connect?

I have defined a route in an atlassian-connect-express app:

app.post("/create-issue", addon.authenticate(), (req, res) => {

var options = {....}

var httpClient = addon.httpClient(req);

httpClient(options, function(err, response, body) {
  if (err) throw new Error(err);
      console.log(
        "Response: " + response.statusCode + " " + response.statusMessage
      );
      console.log(body);
    });

I want to hit this route from an external source. How can I generate a JWT token and send a http request?

Hi @shibasisp,

Welcome to the community! This topic might be a great start. There’s a section that describes creating JWTs.

Cheers,
Anne