Aanish Bhirudfeat: add Crof providerc7276846 months agoHistory
14 lines · 446 B · Swift
RawDownload
import CodexBarCoreimport Foundation extension SettingsStore {    var crofAPIToken: String {        get { self.configSnapshot.providerConfig(for: .crof)?.sanitizedAPIKey ?? "" }        set {            self.updateProviderConfig(provider: .crof) { entry in                entry.apiKey = self.normalizedConfigValue(newValue)            }            self.logSecretUpdate(provider: .crof, field: "apiKey", value: newValue)        }    }}