krz/domain-dig
an ios app for DNS & SSL analysis
clone: git clone https://gitbay.org/krz/domain-dig.git
22ad96331a4456662f740c48882cab8aadd6d0b4
unsigned
author: Christian Cleberg <hello@cleberg.net> · 2026-07-24T23:46:47Z
DomainDig/ContentView.swift | 4 ++++ LocalAPIService.swift | 5 +++++ 2 files changed, 9 insertions(+) @@ -3029,6 +3029,10 @@ private struct LocalAPISettingsView: View { localAPIService.copyToken() } + Button("Copy cURL Command") { + localAPIService.copyCurlCommand() + } + Button("Rotate Token") { localAPIService.rotateToken() } @@ -142,6 +142,11 @@ final class LocalAPIService { AppClipboard.copy(config.token) } + func copyCurlCommand() { + guard !config.token.isEmpty else { return } + AppClipboard.copy("curl -H \"Authorization: Bearer \(config.token)\" \(address)/portfolio") + } + func localSecretReferences() -> [String] { [LocalAPISecretStore.reference] }