Accessible resources endpoint returning two endpoints

While attempting to connect to the JIRA app, we noticed an issue with the response from the endpoint: https://api.atlassian.com/oauth/token/accessible-resources. The URL returned in the response corresponds to a Jira site that was not selected during the OAuth2 authorization flow specifically, when the user was prompted to “Use app on *” to choose the appropriate Jira site.

This mismatch can cause connection issues, as the returned site is not the one the user intended to authorize.

check out

and

In short Atlassian likes to treat the fix as a “feature” request so you have to figure out a way to work around it or wait a few years for Atlassian to fix it