Files
Gilad Resisi 187f6dad7c fix: warn on stderr when stored OAuth credentials override POSTIZ_API_KEY
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
2026-09-01 18:49:24 +07:00
..