elbywan / wretch

A tiny wrapper built around fetch with an intuitive syntax. :candy:
MIT License
4.79k stars 96 forks source link

How to handle SSL Pinning using wretch? #73

Closed PragyaSingla closed 4 years ago

elbywan commented 4 years ago

Hi @PragyaSingla,

This does not seem directly related to wretch.

If you are developing on Android, and using react-native then you should look how to deal with that using their fetch version as wretch is using fetch under the hood.

PragyaSingla commented 4 years ago

If i need to add certificates, wretch will not work. Right?

elbywan commented 4 years ago

I don't see why it wouldn't.

As I said, it all depends on the underlying fetch implementation you are using, for instance node-fetch allows it through a node.js Agent.

Given the amount of detail you provided, I can only advise you to look at your platform documentation.