Skip to content

Commit

Permalink
fix(Auth): update keychain accessiblity to kSecAttrAccessibleAfterFir…
Browse files Browse the repository at this point in the history
…stUnlockThisDeviceOnly (#2122)
  • Loading branch information
phantumcode authored Aug 10, 2022
1 parent 32f7cc6 commit 3c11163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ extension KeychainStore {
static let AttributeAccessible = String(kSecAttrAccessible)

/** Attribute Accessible Constants */
static let AttributeAccessibleAfterFirstUnlock = String(kSecAttrAccessibleAfterFirstUnlock)
static let AttributeAccessibleAfterFirstUnlockThisDeviceOnly = String(kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly)

/** Search Constants */
static let MatchLimit = String(kSecMatchLimit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extension KeychainStoreAttributes {
if let accessGroup = accessGroup {
query[KeychainStore.Constants.AttributeAccessGroup] = accessGroup
}
query[KeychainStore.Constants.AttributeAccessible] = KeychainStore.Constants.AttributeAccessibleAfterFirstUnlock
query[KeychainStore.Constants.AttributeAccessible] = KeychainStore.Constants.AttributeAccessibleAfterFirstUnlockThisDeviceOnly
query[KeychainStore.Constants.UseDataProtectionKeyChain] = kCFBooleanTrue
return query
}
Expand Down

0 comments on commit 3c11163

Please sign in to comment.