mirror of
https://github.com/gitroomhq/postiz-agent.git
synced 2026-09-14 13:46:24 +08:00
187f6dad7c
getConfig() intentionally prefers ~/.postiz/credentials.json over the POSTIZ_API_KEY env var, but did so silently. Unattended automation that sets POSTIZ_API_KEY on a machine where auth:login was once run ends up using the stored OAuth token without any indication, which shows up as unexplained 401s with a seemingly unchanged API key. Print a single warning to stderr when both are present. Priority is unchanged and stdout is untouched so JSON-parsing scripts are unaffected. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4MD1ncpEKWXeA7VTu4jMj