From 52e43cf0733abe5f55fc654fefd6bf5aa4e22edc Mon Sep 17 00:00:00 2001
From: Nathan Woodburn <github@nathan.woodburn.au>
Date: Fri, 7 Mar 2025 14:55:04 +1100
Subject: [PATCH] fix: Typo with old varo creds

---
 hnslinks.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hnslinks.py b/hnslinks.py
index 3f217d6..041ee13 100644
--- a/hnslinks.py
+++ b/hnslinks.py
@@ -114,9 +114,9 @@ def addDomain(params, authentication):
         auth = json.load(f)
         if not auth:
             return {"status": "Missing Varo API or instance"}
-        if 'api' not in auth or 'instance' not in auth:
+        if 'key' not in auth or 'instance' not in auth:
             return {"status": "Missing Varo API or instance"}
-        api = auth["api"]
+        api = auth["key"]
         instance = auth["instance"]
     
     headers = {"Authorization": f"Bearer {api}"}