ebay-oauth-csharp-client icon indicating copy to clipboard operation
ebay-oauth-csharp-client copied to clipboard

Added caching for GetAccessToken() method

Open gtaylor44 opened this issue 6 years ago • 1 comments

My application is storing long lived USER refresh token and using the GetAccessToken method to fetch USER token on demand.

The access token returned from GetAccessToken method is valid for 2 hours. If GetAccessToken is called within 1 hour and 55 minutes, there is no need fetch another access token.

It looks like caching applies to Application type access token and is not handling User type token.

Also, do you think MemoryCache with an absolute expiration policy might be a better implementation for this piece?

gtaylor44 avatar Oct 01 '19 06:10 gtaylor44

Is this repo actively maintained? this PR has been outstanding since october last year

theCorb1nator avatar Jul 20 '20 22:07 theCorb1nator