oauth-pythonclient icon indicating copy to clipboard operation
oauth-pythonclient copied to clipboard

The `expires_in` attribute of `AuthClient` is never set

Open vprusso opened this issue 3 years ago • 1 comments

https://github.com/intuit/oauth-pythonclient/blob/058eedf8f651a8af207e6f6d4a2ebf05e906f7b7/intuitlib/client.py#L67

This value never appears to be updated anywhere in the project. So no matter when this variable is referenced--it will always be None. One would imagine that this would need to be updated at some point, right? Of course, I could be missing something here as well.

vprusso avatar Jan 22 '22 15:01 vprusso

it's set by the call to send_request -- self is passed to that method, and the method applies the data retrieved from the API to as attributes of that object. expires_in is one of the keys in the object received from the calls to get or refresh a token.

indepndnt avatar Jan 22 '22 16:01 indepndnt