C
C#3w ago
M!RFAN

✅ OAuth | Automatic Token Management

https://support.travelport.com/webhelp/JSONAPIs/Airv11/Content/GeneralProject/Oauth.htm I want to automate refreshing access token after its expired by using any built in library.
7 Replies
Jimmacle
Jimmacle3w ago
what's your question?
M!RFAN
M!RFANOP3w ago
I need to call a external API with access token and that token will be expired in a period of time when it expired I need to call auth API using refresh token to retrieve new access token. I'm trying to find is there any built-in library to do this automatically. Also thanks for replying
Jimmacle
Jimmacle3w ago
you don't really need a library for that imo, whenever you make a request check if the token you have is expired and if so get a new one before continuing
M!RFAN
M!RFANOP3w ago
Yeah but I saw a snippet in spring boot which automates this so IM curious why they automated that in first place. SO Im searching for one in this domain
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
M!RFAN
M!RFANOP3w ago
Currently doing similar to this Thanks
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?