From 05efcfe31ad690af07465f15dc60cbbab6e89392 Mon Sep 17 00:00:00 2001 From: Mariusz Klochowicz Date: Thu, 27 Nov 2025 10:44:58 +1030 Subject: [PATCH] fix(apple): Use a single keychain label (#10986) Previous attempt to split the Keychain item between between Debug and Release versions caused issues - we could not save things in the keychain in Debug. Revert the problematic change. No changelog entry as it only affected unreleased debug versions. --- .../FirezoneKit/Sources/FirezoneKit/Models/Token.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/swift/apple/FirezoneKit/Sources/FirezoneKit/Models/Token.swift b/swift/apple/FirezoneKit/Sources/FirezoneKit/Models/Token.swift index ee26eba49..061fde279 100644 --- a/swift/apple/FirezoneKit/Sources/FirezoneKit/Models/Token.swift +++ b/swift/apple/FirezoneKit/Sources/FirezoneKit/Models/Token.swift @@ -8,16 +8,9 @@ import Foundation public struct Token: CustomStringConvertible { - // Debug builds can't write to release build Keychain items, so keep them separate - #if DEBUG - private static let label = "Firezone token (debug)" - #else - private static let label = "Firezone token" - #endif - private static var query: [CFString: Any] { [ - kSecAttrLabel: label, + kSecAttrLabel: "Firezone token", kSecAttrAccount: "1", kSecAttrService: BundleHelper.appGroupId, kSecAttrDescription: "Firezone access token",