← back to Apartmentwallpaper
migrate GoDaddy auth → Bearer PAT (TK-10 key rotation); sso-key fallback retained
5ce921483befc341f6cf56f30db0799b90eb025a · 2026-07-27 20:04:04 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit 5ce921483befc341f6cf56f30db0799b90eb025a
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon Jul 27 20:04:04 2026 -0700
migrate GoDaddy auth → Bearer PAT (TK-10 key rotation); sso-key fallback retained
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
afternic-unlock.mjs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/afternic-unlock.mjs b/afternic-unlock.mjs
index 5bb3f6b..86ae001 100644
--- a/afternic-unlock.mjs
+++ b/afternic-unlock.mjs
@@ -81,7 +81,9 @@ async function main() {
console.error('Could not find GoDaddy key/secret. Set GODADDY_API_KEY and GODADDY_API_SECRET and re-run.');
process.exit(1);
}
- const AUTH = `sso-key ${creds.key}:${creds.secret}`;
+ const AUTH = process.env.GODADDY_PAT
+ ? `Bearer ${process.env.GODADDY_PAT}`
+ : `sso-key ${creds.key}:${creds.secret}`;
const BASE = process.env.GODADDY_API_BASE || 'https://api.godaddy.com';
console.error(`Using creds from ${creds.src}; base=${BASE}; key=${String(creds.key).slice(0,4)}…`);
← f61ff21 Square product-card images (aspect-ratio 1/1)
·
back to Apartmentwallpaper
·
(newest)