I have enabled OAuth 2.0 and used the access token to call Jira Service Desk Rest endpoints.
Problem: access token expires every 1 hour. According to the documentation OAuth 2.0 there are 2 ways to get new access token when it expires
- Initiate the entire authorization flow from the beginning again.
- Use a refresh token to get another access token.
Step 1 does not make any sense as it redirects to webpage and manual intervention is required to authorise the app. To use Step 2 I dont get refresh token at all https://auth.atlassian.com/oauth/token