public override void OnCodeSent(string verificationId, PhoneAuthProvider.ForceResendingToken forceResendingToken)
 {
     base.OnCodeSent(verificationId, forceResendingToken);
     VerificationId = verificationId;
     ResendingToken = forceResendingToken;
     CodeSent?.Invoke(this, new PhoneAuthCodeSentEventArgs(verificationId));
 }
 public override void OnCodeSent(string verificationId, PhoneAuthProvider.ForceResendingToken forceResendingToken)
 {
     // The SMS verification code has been sent to the provided phone number, we
     // now need to ask the user to enter the code and then construct a credential
     // by combining the code with a verification ID.
     base.OnCodeSent(verificationId, forceResendingToken);
     IsCodeSent     = true;
     VerificationId = verificationId;
     this._token    = forceResendingToken;
     CodeSent?.Invoke(this, new EventArgs());
 }
Example #3
0
 public void Apply(CodeSent @event)
 {
     State = AccountState.WaitForCode;
 }