-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(auto-refresh-fetch): enable auto refresh and fetch oauth token flow #162
Conversation
263ab59
to
6a4e84f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
packages/oauth-adapters/test/oauthAuthenticationAdapter.test.ts
Outdated
Show resolved
Hide resolved
packages/oauth-adapters/test/oauthAuthenticationAdapter.test.ts
Outdated
Show resolved
Hide resolved
packages/oauth-adapters/test/oauthAuthenticationAdapter.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check out my feedback on the code.
|
This PR adds the functionality i.e. a provider to fetch or refresh the OAuth token again, whenever it meets the following criteria:
This PR also adds the functionality to get updated OAuthToken via a callback function that can be used to store it wherever necessary
Closes #161