Not sure if you mean client-side or server-side. I explored that in a project using JWT/OAuth 2.0 flow. See jira-issue-attachment.js
Appreciate your help. Thank you.
I was looking for a client-side solution.
The linked file would be pretty transportable, but the surrounding code is most certainly server-centric. For example, you’ll have to find an auth mechanism that works for your context. I hope you’ll post your code as open source when you get something working. Or, before, if you need any additional help.