Webservice custom authentication

Hi All,

I’m using custom authentication to retrieve the token and use it in other operations. But the token has expiration time. How can I trigger the custom authentication if the token expires? I have also added retryableerror for the operation.