When refresh_token_set returned the empty object, we set this empty object in our database, thereby invalidating the connection.
I am curious as to what would cause the request to /token to return empty/nil in the first place, in order to work out what actions I need to take in my own codebase, and what to suggest could change (even just in the documentation) in this library to handle this situation.
Recently we had a situation where the refresh_token_set method returned an empty object. This appears to happen when, for whatever reason, the response from the Faraday post request to
/token
in the token_request method has an empty or nil response body.When refresh_token_set returned the empty object, we set this empty object in our database, thereby invalidating the connection.
I am curious as to what would cause the request to
/token
to return empty/nil in the first place, in order to work out what actions I need to take in my own codebase, and what to suggest could change (even just in the documentation) in this library to handle this situation.