pnp-auth icon indicating copy to clipboard operation
pnp-auth copied to clipboard

Provide custom fetch

Open wmertens opened this issue 6 years ago • 0 comments

I have a misbehaving SP with frequent timeouts that I can't do anything about. I would like to make it so GET requests have a short timeout (default seems to be 15 minutes) and are retried 3 times when they time out.

It seems that I have to monkey-patch node-fetch's fetch to do so, but it would be nice to provide a custom fetch function instead.

wmertens avatar Aug 05 '19 21:08 wmertens