mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-21 15:50:59 +00:00
Keychain items accessible after first unlock
This commit is contained in:
parent
61d1a3619d
commit
f34fc7097d
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ extension LiveKeychain: Keychain {
|
||||||
var query = genericPasswordQueryDictionary(account: account, service: service)
|
var query = genericPasswordQueryDictionary(account: account, service: service)
|
||||||
|
|
||||||
query[kSecValueData as String] = data
|
query[kSecValueData as String] = data
|
||||||
|
query[kSecAttrAccessible as String] = kSecAttrAccessibleAfterFirstUnlock
|
||||||
|
|
||||||
var status = SecItemAdd(query as CFDictionary, nil)
|
var status = SecItemAdd(query as CFDictionary, nil)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue