diff --git a/Sources/FronteggSwift/services/CredentialManager.swift b/Sources/FronteggSwift/services/CredentialManager.swift index 3447d16..3974a18 100644 --- a/Sources/FronteggSwift/services/CredentialManager.swift +++ b/Sources/FronteggSwift/services/CredentialManager.swift @@ -38,7 +38,8 @@ public class CredentialManager { kSecClass: kSecClassGenericPassword, kSecAttrService: serviceKey ?? "frontegg", kSecAttrAccount: key, - kSecValueData: valueData + kSecValueData: valueData, + kSecAttrAccessible: kSecAttrAccessibleAfterFirstUnlock ] as [CFString : Any] as CFDictionary let status = SecItemAdd(query, nil) @@ -49,6 +50,7 @@ public class CredentialManager { kSecClass: kSecClassGenericPassword, kSecAttrService: serviceKey ?? "frontegg", kSecAttrAccount: key, + kSecAttrAccessible: kSecAttrAccessibleAfterFirstUnlock ] as [CFString : Any] as CFDictionary let newAttributes : CFDictionary = [