GoogleCloudPlatform / recaptcha-enterprise-react-native

Apache License 2.0
28 stars 4 forks source link

KeyType Invalid #18

Closed pablo4lvarez closed 11 months ago

pablo4lvarez commented 11 months ago

Hey! What does that error means? I can't find anywhere that error explanation. I'm passing a SiteKey just as the example in the documentation:

await initClient(siteKey, 5000)
          .then(() => setInitResult('ok'))
          .catch((error) => {
            setInitResult(error.toString());
            reject(error);
          });

Where siteKey is a string.

Thanks in advance! 🙏

Versions

mcorner commented 11 months ago

Either you are using an iOS key on Android or vice versa. Or perhaps you are trying to use an Android onplay key on a non GMSCore device.