Răsfoiți Sursa

move teamId required for keychain sharing to separate variable

cyberta 3 ani în urmă
părinte
comite
e2acb13ee7
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      DcCore/DcCore/Helper/KeychainManager.swift

+ 3 - 1
DcCore/DcCore/Helper/KeychainManager.swift

@@ -2,12 +2,14 @@ import Foundation
 import Security
 import Security
 
 
 public class KeychainManager {
 public class KeychainManager {
-    private static let sharedKeychainGroup = "8Y86453UA8.group.chat.delta.ios"
     enum KeychainError: Error {
     enum KeychainError: Error {
         case noPassword
         case noPassword
         case unexpectedPasswordData
         case unexpectedPasswordData
         case unhandledError(status: OSStatus)
         case unhandledError(status: OSStatus)
     }
     }
+    private typealias KcM = KeychainManager
+    private static let teamId = "8Y86453UA8"
+    private static let sharedKeychainGroup = "\(KcM.teamId).group.chat.delta.ios"
 
 
     public static func getDBSecret() throws -> String {
     public static func getDBSecret() throws -> String {
         guard let secret = try? queryDBSecret() else {
         guard let secret = try? queryDBSecret() else {