mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 02:18:47 +00:00
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:
committed by
GitHub
parent
51fa5a5835
commit
05efcfe31a
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user