public void ReSendPhoneNumberVerification(string phoneNumber) { _phoneProvider.VerifyPhoneNumber(phoneNumber, phoneVerificationTimeoutMS, _smsResendToken, verificationCompleted: (credential) => { Debug.Log("verificationCompleted"); // Auto-sms-retrieval or instant validation has succeeded (Android only). // There is no need to input the verification code. // `credential` can be used instead of calling GetCredential(). _userCredential = credential; }, verificationFailed: (error) => { Debug.Log("verificationFailed"); // The verification code was not sent. // `error` contains a human readable explanation of the problem. }, codeSent: (id, token) => { Debug.Log("codeSent"); // Verification code was successfully sent via SMS. // `id` contains the verification id that will need to passed in with // the code from the user when calling GetCredential(). // `token` can be used if the user requests the code be sent again, to // tie the two requests together. _smsVerificationId = id; _smsResendToken = token; }, codeAutoRetrievalTimeOut: (id) => { Debug.Log("codeAutoRetrievalTimeOut"); _smsVerificationIdTimeoutRequest = id; } ); }
public override void OnCodeSent(string verificationId, ForceResendingToken forceResendingToken) { base.OnCodeSent(verificationId, forceResendingToken); _verificationId = verificationId; _token = forceResendingToken; _singInCallbacks.OnCodeSent(verificationId, forceResendingToken); }
public override void OnCodeSent(string verificationId, ForceResendingToken forceResendingToken) { //base.OnCodeSent(verificationId, forceResendingToken); if (!string.IsNullOrWhiteSpace(_instance.VerificationID)) { _instance.VerificationID = ""; _instance.VerificationID = verificationId; } else { _instance.VerificationID = verificationId; } }
public override void OnCodeSent(string verificationId, ForceResendingToken forceResendingToken) { base.OnCodeSent(verificationId, forceResendingToken); _verificationId = verificationId; }
public override void OnCodeSent(string p0, ForceResendingToken p1) => _onCodeSent?.Invoke(p0, p1);
private static void OnCodeSent(string id, ForceResendingToken token) { _id = id; _onRegister.Invoke(new RequestData(true, null)); Debug.Log("OnCodeSent"); }