verifyWithRecaptcha method

  1. @override
Future<String> verifyWithRecaptcha(
  1. String siteKey
)
override

Verifies that the user is human and returns a token that your backend server can verify by making a call to the reCaptcha API.

Implementation

@override
Future<String> verifyWithRecaptcha(String siteKey) async {
  if (!await isAvailable) {
    throw const ReCaptchaNotAvailableException();
  }

  return await methodChannel.invokeMethod("verify", {"key": siteKey});
}