/// <inheritdoc /> public async Task <IFactor> ActivateFactorAsync(IVerifyFactorRequest verifyFactorRequest, string userId, string factorId, CancellationToken cancellationToken = default(CancellationToken)) => await PostAsync <Factor>(new HttpRequest { Uri = "/api/v1/users/{userId}/factors/{factorId}/lifecycle/activate", Payload = verifyFactorRequest, PathParameters = new Dictionary <string, object>() { ["userId"] = userId, ["factorId"] = factorId, }, }, cancellationToken).ConfigureAwait(false);
/// <inheritdoc /> public async Task <IVerifyFactorResponse> VerifyFactorAsync(IVerifyFactorRequest verifyFactorRequest, string userId, string factorId, string templateId = null, CancellationToken cancellationToken = default(CancellationToken)) => await PostAsync <VerifyFactorResponse>(new HttpRequest { Uri = "/api/v1/users/{userId}/factors/{factorId}/verify", Payload = verifyFactorRequest, PathParameters = new Dictionary <string, object>() { ["userId"] = userId, ["factorId"] = factorId, }, QueryParameters = new Dictionary <string, object>() { ["templateId"] = templateId, }, }, cancellationToken).ConfigureAwait(false);