verify method
Future<ApplicationVerificationResult>
verify(
- FirebaseAuth auth,
- String nonce, {
- 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);
}