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

Handle 401 failures gracefully #167

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Conversation

DonOmalVindula
Copy link
Contributor

@DonOmalVindula DonOmalVindula commented Apr 9, 2024

Purpose

$subject

This will improve the token refresh logic to block the HTTP requests until the token is properly refreshed.

Because of this improvement, there is no requirement to periodically refresh the token in the application as the token will be refreshed on demand.

Therefore this will also introduce a config periodicTokenRefresh which will be set to false by default. If a user wishes to enable periodic refresh of the token, they can set it true and it will work as intended

Goals

Resolves #166

Related PRs

brionmario
brionmario previously approved these changes Apr 9, 2024
@DonOmalVindula DonOmalVindula merged commit 3b874cd into asgardeo:main Apr 9, 2024
1 check passed
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.

Handle HTTP requests when token is being refreshed
2 participants