Exemplo n.º 1
0
        public async Task ActivateFactor(IUserFactor factor, string emailAddress, string passCode)
        {
            var user = await _client.Users.FirstOrDefaultAsync(u => u.Profile.Email.Equals(emailAddress));

            if (user != default)
            {
                await factor.ActivateAsync(new ActivateFactorRequest
                {
                    PassCode = passCode,
                },
                                           user.Id);
            }
        }