fetchClient static method

Future<RecaptchaClient> fetchClient(
  1. String siteKey
)

Returns a RecaptchaClient associated with the siteKey to access all reCAPTCHA APIs. It uses the fetchClient API that has built-in retries.

Implementation

static Future<RecaptchaClient> fetchClient(String siteKey) async {
  return RecaptchaEnterprisePlatform.instance
      .fetchClient(siteKey)
      .then((_) {
    return RecaptchaClient();
  });
}