-> REST API Call (Make the API request with current token)
-> Branch Node (Check if token is expired)
If True:
-> REST API Call (Regenerate token)
-> Update the secret manager/database with new token and expiration time
-> REST API Call (Retry the original API request with new token)
If False:
-> Continue with the original REST API Call
-> REST API Call (Make the API request with current token)
-> Branch Node (Check if token is expired)
If True:
-> REST API Call (Regenerate token)
-> Update the secret manager/database with new token and expiration time
-> REST API Call (Retry the original API request with new token)
If False:
-> Continue with the original REST API Call