How to refresh JWT token and access token "programmatically" | Community
Skip to main content
New Participant
Jan 16, 2023 5:31 PM UTC
Solved

How to refresh JWT token and access token "programmatically"

Hi All,

We are using JWT acces token to call Adobe I/O for Analytics. Since access token expires after 24 hours, currently we have to manually generate it.
Can you please suggest how the token can be refreshed "programmatically".

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
FarazHusain
FarazHusainAccepted solution
Employee
Jan 18, 2023 1:47 PM UTC

Hey @kumar1, you can check this thread - https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/generating-jwt-for-target-api/m-p/317995#M1641; there is a Python code shared here. This might help. 

 

2 replies

Level 2
Feb 4, 2023 7:49 PM UTC

Hi @kumar1, 
I'm facing the same issue currently, and I did all the steps per the documentation here: https://experienceleague.adobe.com/docs/experience-platform/tags/api/getting-started.html?lang=en#:~:text=Generate%20access%20tokens%20programmatically 
but the API call returns 503: Service Unavailable! 
Did you manage to solve it?

 

 

 
Translate
FarazHusain
FarazHusainAccepted solution
Employee
Jan 18, 2023 1:47 PM UTC

Hey @kumar1, you can check this thread - https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/generating-jwt-for-target-api/m-p/317995#M1641; there is a Python code shared here. This might help. 

 

Translate