Skip to content

Commit

Permalink
Fix accessibility param for sqlite encryption key (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarAbdullin-okta authored Mar 30, 2023
1 parent f568755 commit 447b0c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class OktaSQLiteEncryptionManager: OktaSQLiteColumnEncryptionManagerProtocol {
forKey: keyTag.rawValue,
behindBiometrics: false,
accessGroup: keychainGroupId,
accessibility: kSecAttrAccessibleWhenUnlocked)
accessibility: kSecAttrAccessibleAfterFirstUnlock)

return cryptoKey
} catch {
Expand All @@ -130,6 +130,6 @@ class OktaSQLiteEncryptionManager: OktaSQLiteColumnEncryptionManagerProtocol {
}

enum EncryptionTag: String {
case columnEncryptionKeyTag = "com.okta.SQLiteColumnEncryptionKeyTag"
case columnEncryptionKeyTag = "com.okta.SQLiteEncryptionKeyTag"
}
}

0 comments on commit 447b0c2

Please sign in to comment.