C# SDK CompleteChallenge

I’ve following the guide to authorize Web3 using C# SDK
RequestMessage (Challenge) works and gives back the correct info
however VerifySignature (CompleteChallenge) gives a bad request. I’ve checked the inputs and they seem to be ok.

at Moralis.AuthApi.Api.AuthenticationApi.d__9.MoveNext()

it could happen if the message is not exact as the one that was received from requestMessage, like replacing an \n with \r or with \r\n

it could also happen if not all fields were properly set in that message

you could try to check if the message is identical after it was signed in the front end (you could try to make a hash to be sure that it is identical)