Skip to content

Commit

Permalink
Code review fix
Browse files Browse the repository at this point in the history
Remove value check at ChallengeNameType.
  • Loading branch information
Dmitry Proskurin authored and 96malhar committed Oct 3, 2023
1 parent a79b52e commit 29fcce6
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,6 @@ public async Task<AuthFlowResponse> RespondToMfaAuthAsync(RespondToMfaRequest mf
{
throw new ArgumentNullException(nameof(mfaRequest));
}
if (mfaRequest.ChallengeNameType != ChallengeNameType.SMS_MFA && mfaRequest.ChallengeNameType != ChallengeNameType.SOFTWARE_TOKEN_MFA)
{
throw new ArgumentException($"{ChallengeNameType.SMS_MFA} or {ChallengeNameType.SOFTWARE_TOKEN_MFA} at {nameof(mfaRequest.ChallengeNameType)} required.", nameof(mfaRequest));
}

RespondToAuthChallengeRequest challengeRequest = new RespondToAuthChallengeRequest
{
Expand Down

0 comments on commit 29fcce6

Please sign in to comment.