eBay / ebay-oauth-csharp-client

eBay OAuth C# Client Library
Apache License 2.0
54 stars 40 forks source link

Added caching for GetAccessToken() method #7

Open gtaylor44 opened 4 years ago

gtaylor44 commented 4 years ago

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?

theCorb1nator commented 3 years ago

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