bamlab / react-native-app-security

Easily implement usual security measures in React Native Expo apps. Made by BAM ❤️💙💛
58 stars 1 forks source link

Listener for SSL pinning errors #11

Open leabaertschi opened 1 month ago

leabaertschi commented 1 month ago

Hi,

we'd like to know if some request is failing due to an issue with SSL pinning. As far as I've seen the error callback parameter in react-natives XMLHttpRequest does not look any different whether you request from a non-existing domain or there's an issue with the certificate. Would it be possible to implement some listener or something similar that would be called if there is an issue with the pinned certificates?

Kind regards, Lea

matthieugicquel commented 2 weeks ago

Hello,

While it would be nice to have, I don't plan to work on this feature at this time. If you would like to contribute it, please tell and we can discuss it further :)

leabaertschi commented 2 weeks ago

Hey, I quickly checked with some people here and we think it would be worth to invest some time and contribute. I'll be on holidays for the next two weeks though. But it would be great if we could have a chat afterwards to see how to proceed.