Skip to content

Commit

Permalink
Remove redundant SecretHash calculation(due previous changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Proskurin authored and 96malhar committed Oct 3, 2023
1 parent d9469af commit 8824762
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,9 @@ private InitiateAuthRequest CreateSrpAuthRequest(Tuple<BigInteger, BigInteger> t
}
};

if (!string.IsNullOrEmpty(ClientSecret))
if (!string.IsNullOrEmpty(SecretHash))
{
initiateAuthRequest.AuthParameters.Add(CognitoConstants.ChlgParamSecretHash,
CognitoAuthHelper.GetUserPoolSecretHash(Username, ClientID, ClientSecret));
initiateAuthRequest.AuthParameters.Add(CognitoConstants.ChlgParamSecretHash, SecretHash);
}

if (Device != null && !string.IsNullOrEmpty(Device.DeviceKey))
Expand Down

0 comments on commit 8824762

Please sign in to comment.