Page 1 of 1

Reccomended connection timeout

Posted: Tue Jun 16, 2020 2:46 pm
by Codemzipwhip
Hello,
Our integration with the API has recently been hitting timeouts when refreshing tokens resulting in a few customers losing their connection. What is the recommended time we wait for a response from the refresh token call?

Re: Reccomended connection timeout

Posted: Tue Jun 16, 2020 5:46 pm
by khenle
Hello,

Access tokens are valid for 10 minutes. However, the refresh token has no expiration date/time but it does expire when a new access token and refresh token are generated.

If there are conflicting oauth calls, this can cause the refresh token to be expired. When you make the oauth call with a particular set of user credentials, it will invalidate any previously issued tokens.

Additionally, The GET /login call has an optional ttl parameter. The default is 10 minutes if you do not specify a ttl in the login call.

Hope this helps!