Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added caching for GetAccessToken() method #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gtaylor44
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants