How do I authorize using a Personal Access Token in JavaScript using the official jira-client wrapper provided

I’m trying to read and create issues from a javascript based utility I’m creating and the access mechanism I have is a Personal Access token. I’m trying to use the Jira-client wrapper. How do I authenticate using this mechanism ?

Thank you

Can you link to the wrapper/library that you’re referring to? Also, is this a Node.js based implementation you’re trying to do, or something completely client/browser based?

Hi,
This is the wrapper I’m referring to: jira-client - npm

I was able to authorize with the private token which is shown only that we have to copy elsewhere when we first create a personal access token

I’m trying to build a utility that can be integrated into a reporting tool