How can I retrieve the JIRA domain URL from my Atlassian Connect app using node js?

Hi,

"My app is installed in the JIRA Marketplace, and I now have the secret key and other necessary information.

"Assuming my application is installed in marketplaces by mutiple users where the Jira instances are running on various domains.

"When a user opens my app in the Jira Marketplace and performs some operations, I need to make JIRA API calls to execute operations on the JIRA application.

"How can I dynamically obtain the JIRA domain to make JIRA REST API calls, considering the domain and shared secret(JWT)?

"User 1 (with a different Jira domain - https://a.atlassian.net/rest/api/2/issuetype/) opens the Atlassian app to perform operations. How can I obtain the JIRA domain to make a JIRA REST API call?

“User 2 (with a different Jira domain - https://b.atlassian.net/rest/api/2/issuetype/) opens the Atlassian app to perform operations. How can I obtain the JIRA domain to make a JIRA REST API call?”