Jira service desk create an issue via rest api

Hi,

I currently have a react web page where a simple form is filled out, I would like to call a rest api endpoint in jira service desk to create a issue with the details. I created the appropriate custom fields to accept this data from the frontend.

Is there an example scenario where I can use a client_credentials oauth2 setup to request a token with the correct scope to use with this ?

All the examples I see require a callback to some webpage in my frontend but I dont want any user interaction with accepting something here. I have done this many times in my c# dotnet code in various projects but was wondering if you had a good working example that I could have a look at or follow to achieve this.

Regards,
Emil