Пример #1
0
        public async Task <string> GenerateVerificationCodeAsync(string phone)
        {
            var code = await _tokenContext.GenerateVerificationCodeAsync(phone);

            await _smsSendRequest.SendVerificationCodeAsync(new string[] { phone }, code);

            return(code);
        }