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.
This commit is contained in:
Mariusz Klochowicz
2025-11-27 10:44:58 +10:30
committed by GitHub
parent 51fa5a5835
commit 05efcfe31a

View File

@@ -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",