"Re-Auth" on token expiration
Last updated
Was this helpful?
Last updated
Was this helpful?
If you are using ts-force
on a server or long-running process, you might want to setup automatic reauth when your current token expires.
While this is not support "natively", the AxiosInstance
is exposed via Rest.request
for use cases like this.
Below is an example using to automatically create a new token via Username/Password flow, but the same concept applies for other methods.