Hi Team,
I am writing to seek your advice on a technical issue that I have been facing with using the Jira API token in my web application. Currently, I am using the following code to make API calls from the frontend:
headers: {
Authorization: Basic ${btoa(
${iparam.jiraUserEmail}:${iparam.jiraApiToken} )}
,
“Content-Type”: “application/json”,
},
However, I am finding it difficult to securely store the jiraApiToken in the iparams and still be able to use it in the above code. I have also tried the following code, but it did not work:
headers: {
Authorization: Basic ${btoa(
${iparam.jiraUserEmail}:<%= iparam.jiraApiToken %> )}
,
“Content-Type”: “application/json”,
},
I would greatly appreciate any suggestions or solutions you may have regarding this matter. Thank you for your time and assistance.
Thanks & Regards,
Gopi