diff --git a/src/JWT/JWT.cs b/src/JWT/JWT.cs index 9fb449737..e6f87d13b 100644 --- a/src/JWT/JWT.cs +++ b/src/JWT/JWT.cs @@ -239,7 +239,10 @@ public static void Verify(string payloadJson, string decodedCrypto, string decod { if (decodedCrypto != decodedSignature) { - throw new SignatureVerificationException("Invalid signature"); + var signatureVerificationException = new SignatureVerificationException("Invalid signature"); + signatureVerificationException.Data.Add("Expected", decodedCrypto); + signatureVerificationException.Data.Add("Received", decodedSignature); + throw signatureVerificationException; } // verify exp claim https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.4