Clean API models and keychain helpers

This commit is contained in:
Micha
2025-11-19 19:33:22 +01:00
parent c9ebc22551
commit 562023519a
7 changed files with 15 additions and 361 deletions

View File

@@ -9,7 +9,7 @@ import Foundation
import Security
enum KeychainHelper {
static func save(apiKey: String, for hostname: String) {
static func saveApiKey(_ apiKey: String, for hostname: String) {
let data = Data(apiKey.utf8)
let query: [String: Any] = [
kSecClass as String: kSecClassGenericPassword,