Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

How to write interceptor in capacitor http #271

Open
viharshitha opened this issue Jul 6, 2022 · 1 comment
Open

How to write interceptor in capacitor http #271

viharshitha opened this issue Jul 6, 2022 · 1 comment

Comments

@viharshitha
Copy link

Hi Team,

I need an interceptor that attaches headers to every HTTP request, similar to an Angular interceptor. Suppose bulk API calls are triggering, and some tokens expire during failure, then I will try to get the refresh token, but how can I retry the failed requests?

How can I get interceptor similar to angular interceptor. Please suggest

@KalyaniVenna81
Copy link

Same here, we are also facing this issue. We need interceptor support with capacitor http. If native interceptor is not available please let me know a way to implement custom interceptor with capacitor.

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

No branches or pull requests

2 participants