You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the OAuthDispatcher, the expirationTimeSeconds can only be set calling the setExpiresInSeconds directly from an outside source.
Currently, to make Asana refresh the token through the refreshAccessToken (called from authenticate), the expiration must be set manually.
Would it be possible to pass the expiration time in the constructor as an additional option? This would allow the dispatcher to correctly refresh the token when needed?
This could be achieved by allowing an option and setting the expirationTimeSeconds in the constructor, similar to this
Hello Everyone,
In the
OAuthDispatcher
, theexpirationTimeSeconds
can only be set calling thesetExpiresInSeconds
directly from an outside source.Currently, to make Asana refresh the token through the
refreshAccessToken
(called fromauthenticate
), the expiration must be set manually.Would it be possible to pass the expiration time in the constructor as an additional option? This would allow the dispatcher to correctly refresh the token when needed?
This could be achieved by allowing an option and setting the
expirationTimeSeconds
in the constructor, similar to thisIf this is an acceptable solution, I would be happy to provide a pull request.
The text was updated successfully, but these errors were encountered: