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 interceptNetworkError to AxiosAuthRefreshOptions #134

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

wuservices
Copy link
Contributor

Adds an option to allow intercepting a network error if options.interceptNetworkError is true.

This is useful for intercepting CORS failures. The Salesforce REST API is an example of an API that supports CORS when authenticated, but doesn't return CORS headers once an access token has expired or is invalid.

Implements #133

Adds an option to allow intercepting a network error if `options.interceptNetworkError` is `true`.

This is useful for intercepting CORS failures. The Salesforce REST API is an example of an API that supports CORS when authenticated, but doesn't return CORS headers once an access token has expired or is invalid.
@wuservices wuservices force-pushed the intercept-network-error branch from 73532f1 to c4938a4 Compare January 5, 2021 02:39
@Flyrell Flyrell merged commit 4af1730 into Flyrell:master Jan 12, 2021
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