From ee02695c207da6ca8dbe11e792538a30033d0243 Mon Sep 17 00:00:00 2001 From: Fernando Bunn Date: Thu, 28 Sep 2023 19:16:06 +0100 Subject: [PATCH] Resolve naming inconsistencies (#1692) Task/Issue URL: https://app.asana.com/0/1204167627774280/1205568633568787/f **Description**: Resolve naming inconsistencies between backend and client side --- .../Sources/DataBrokerProtection/Services/CaptchaService.swift | 2 +- .../DataBrokerProtection/Services/RedeemCodeServices.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Services/CaptchaService.swift b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Services/CaptchaService.swift index 9653ef34b5..52ec1ffd44 100644 --- a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Services/CaptchaService.swift +++ b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Services/CaptchaService.swift @@ -179,7 +179,7 @@ struct CaptchaService: CaptchaServiceProtocol { request.addValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type") let bodyObject: [String: Any] = [ - "sitekey": captchaInfo.siteKey, + "siteKey": captchaInfo.siteKey, "url": captchaInfo.url, "type": captchaInfo.type ] diff --git a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Services/RedeemCodeServices.swift b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Services/RedeemCodeServices.swift index ae3ecec482..1c14f397d7 100644 --- a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Services/RedeemCodeServices.swift +++ b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Services/RedeemCodeServices.swift @@ -130,7 +130,7 @@ public enum AuthenticationError: Error, Equatable { struct RedeemResponse: Codable { enum CodingKeys: String, CodingKey { - case accessToken = "access_token" + case accessToken case message }