Browse Source

move teamId required for keychain sharing to separate variable

cyberta 3 năm trước cách đây
mục cha
commit
e2acb13ee7
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      DcCore/DcCore/Helper/KeychainManager.swift

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

@@ -2,12 +2,14 @@ import Foundation
 import Security
 
 public class KeychainManager {
-    private static let sharedKeychainGroup = "8Y86453UA8.group.chat.delta.ios"
     enum KeychainError: Error {
         case noPassword
         case unexpectedPasswordData
         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 {
         guard let secret = try? queryDBSecret() else {