Implementing Certificate Pinning

I’m trying to use these instructions: Made by Many 2 to implement certificate pinning on Android.

However, it seems that using replaceClient() for the OkHttpClientProvider doesn’t actually replace the HTTP client that Expo is using. I’ve tried adding interceptors and logging out the requests, as well as placing debug statements, but nothing is being hit.

How can I attach an interceptor or certificate pinner to the HTTP client that expo is using? Or, is there an alternate way I can achieve certificate pinning?

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.