verify method

  1. @override
Future<ApplicationVerificationResult> verify(
  1. FirebaseAuth auth,
  2. String nonce, {
  3. bool forceRecaptcha = false,
})

Implementation

@override
Future<ApplicationVerificationResult> verify(FirebaseAuth auth, String nonce,
    {bool forceRecaptcha = false}) async {
  if (!forceRecaptcha) {
    var p = Platform.current;
    if (p is IOsPlatform || p is MacOsPlatform) {
      var v = await verifyWithApns(auth);
      if (v != null) return ApplicationVerificationResult.apns(v);
    } else if (p is AndroidPlatform) {
      var v = await verifyWithPlayIntegrity(auth, nonce);
      if (v != null) return ApplicationVerificationResult.playItegrity(v);
    }
  }
  var v = await verifyWithRecaptcha(auth);
  return ApplicationVerificationResult.recaptcha(v);
}