Skip to content

Commit dbe8916

Browse files
committed
feat: use .data from KeychainWrapper
1 parent 239fb83 commit dbe8916

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

firefox-ios/Storage/Rust/RustLogins.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -998,12 +998,9 @@ public class RustLogins: LoginsProtocol, KeyManager {
998998
*/
999999
public func getKey() throws -> Data {
10001000
let rustKeys = RustLoginEncryptionKeys()
1001-
let (key, _) = getKeychainData(rustKeys: rustKeys)
1002-
1003-
guard let keyData = key?.data(using: .utf8) else {
1001+
guard let keyData = rustKeys.keychain.data(forKey: rustKeys.loginPerFieldKeychainKey) else {
10041002
throw LoginsStoreError.MissingKey
10051003
}
1006-
10071004
return keyData
10081005
}
10091006
}

0 commit comments

Comments
 (0)