From 22ac59affe82fd0601d0e490f047608b27cc34b2 Mon Sep 17 00:00:00 2001 From: cocoa-dev004 <66989461+cocoa-dev004@users.noreply.github.com> Date: Tue, 8 Mar 2022 08:53:40 +0900 Subject: [PATCH] Fixed the parameter name --- .../Covid19Radar.Android/Services/DeviceCheckService.cs | 4 ++-- Covid19Radar/Covid19Radar.iOS/Services/DeviceCheckService.cs | 2 +- Covid19Radar/Covid19Radar/Services/IDeviceVerifier.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Covid19Radar/Covid19Radar.Android/Services/DeviceCheckService.cs b/Covid19Radar/Covid19Radar.Android/Services/DeviceCheckService.cs index b4ed86636..81b48a26e 100644 --- a/Covid19Radar/Covid19Radar.Android/Services/DeviceCheckService.cs +++ b/Covid19Radar/Covid19Radar.Android/Services/DeviceCheckService.cs @@ -26,11 +26,11 @@ public Task VerifyAsync(V1EventLogRequest eventLogRequest) return GetSafetyNetAttestationAsync(nonce); } - public bool IsErrorPayload(string jwsResult) + public bool IsErrorPayload(string token) { try { - var jwt = new JwtSecurityToken(jwsResult); + var jwt = new JwtSecurityToken(token); var payloadJson = jwt.Payload.SerializeToJson(); var error = JObject.Parse(payloadJson).Value("error"); diff --git a/Covid19Radar/Covid19Radar.iOS/Services/DeviceCheckService.cs b/Covid19Radar/Covid19Radar.iOS/Services/DeviceCheckService.cs index 1f079d2d8..d8add2068 100644 --- a/Covid19Radar/Covid19Radar.iOS/Services/DeviceCheckService.cs +++ b/Covid19Radar/Covid19Radar.iOS/Services/DeviceCheckService.cs @@ -23,7 +23,7 @@ public async Task VerifyAsync(V1EventLogRequest _) return Convert.ToBase64String(token.ToArray()); } - public bool IsErrorPayload(string jwsResult) + public bool IsErrorPayload(string token) => false; } } diff --git a/Covid19Radar/Covid19Radar/Services/IDeviceVerifier.cs b/Covid19Radar/Covid19Radar/Services/IDeviceVerifier.cs index 25649baa9..607637aee 100644 --- a/Covid19Radar/Covid19Radar/Services/IDeviceVerifier.cs +++ b/Covid19Radar/Covid19Radar/Services/IDeviceVerifier.cs @@ -22,6 +22,6 @@ public interface IDeviceVerifier Task VerifyAsync(V1EventLogRequest eventLogRequest); - bool IsErrorPayload(string jwsResult); + bool IsErrorPayload(string token); } }