datatheorem / TrustKit

Easy SSL pinning validation and reporting for iOS, macOS, tvOS and watchOS.
MIT License
2.03k stars 364 forks source link

SSL Pinning in react native 0.59 #204

Closed SunilPandey- closed 5 years ago

SunilPandey- commented 5 years ago

Hi,

a) when I pass kTSKSwizzleNetworkDelegates: or kTSKEnforcePinning as NO, then I am able to login to my app even though i pass wrong Public keys inside kTSKPublicKeyHashes. My understanding is if i pass wrong public keys then URL should throw error.

b) When I pass kTSKSwizzleNetworkDelegates: or kTSKEnforcePinning as YES then even i pass correct public keys inside kTSKPublicKeyHashes. I am unable to login in app. it throws TRUSTKit validation error.

Could you please guide me, how to fix it.

nabla-c0d3 commented 5 years ago

React native is not officially supported. Good luck!