mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 15:09:31 +02:00
Fix removal of pin
This commit is contained in:
@@ -24,6 +24,11 @@ class KeychainStore: KeyValueStore {
|
||||
private let keychain = Keychain()
|
||||
|
||||
func setObject(forKey key: KeyValueStoreKey, value: Any?) {
|
||||
if value == nil {
|
||||
removeObject(forKey: key)
|
||||
return
|
||||
}
|
||||
|
||||
if let value = value as? String {
|
||||
try? keychain.set(value, key: key)
|
||||
} else if let value = value as? Data {
|
||||
|
||||
Reference in New Issue
Block a user