react-native-google-places-autocomplete icon indicating copy to clipboard operation
react-native-google-places-autocomplete copied to clipboard

How to limit access to API key

Open digitalthjarta opened this issue 1 year ago • 2 comments

How can I limit the access to the API key to only be used from my app? Is it even possible?

If I understand it correctly, the key used is for the JavaScript SDK so the native fingerprint / bundleId of the app is not used. But the app is neither hosted on a server with a fixed referrer. Is it possible to limit access to the api key?

digitalthjarta avatar Jul 30 '23 14:07 digitalthjarta

This library does not support restricted API keys from Google

BrennenRocks avatar Aug 23 '23 16:08 BrennenRocks

Would have to switch to using the native iOS and Android SDK's which would open up the ability to limit to bundle ID & SHA-1 cert

keithluchtel avatar Feb 01 '24 18:02 keithluchtel