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

Add token refresh to the Service Auth client #9

Open
calebmshafer opened this issue Oct 6, 2021 · 0 comments
Open

Add token refresh to the Service Auth client #9

calebmshafer opened this issue Oct 6, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@calebmshafer
Copy link
Member

The current service authorization client gets a new token and stores the expires_at but does not properly handle refreshing the cache token if it's expired.

I'd propose we update the getAccessToken() method to check the expires time and refreshes the token if needed. This will make it so that getAccessToken is now always returning a valid token.

@calebmshafer calebmshafer added the enhancement New feature or request label Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant