Hi Team,
I’m working on some automation using Jira Cloud REST APIs with OAuth 2.0 (3LO) authentication.
My integration performs various site-level operations like creating issues, updating project settings, issue type schemes, workflows, etc via Jira Rest APIs
The flow I’m following is:
However, I’ve noticed that sometimes the access token gets expired or becomes invalid within just 10 minutes, even though its exp field indicates a validity of 1 hour.
After that, any API calls start failing with 401 Unauthorized.
I wanted to understand:
Would appreciate any insights or confirmation from others who’ve faced similar behavior.
Thanks,
Gopal G
Hello @gopal guna
Does Jira Cloud intentionally expire or revoke access tokens earlier than their expected lifetime?
Nope.
Can this happen if a new refresh token is generated somewhere else (causing the previous access token to become invalid)?
Yep
Is there any specific recommendation to handle this scenario gracefully in automation workflows?
Don't refresh the same OAuth token in multiple or concurrent workflows.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.