Node / Batch Save Output · troubleshooting
Imgur output credentials & security
Current Apexify.js 6.0.0 documentation for Imgur output credentials & security.
painter.output.url(buffer[, credentials]) uploads a PNG buffer to Imgur and returns the public image URL.
Apexify.js does not contain built-in Imgur credentials. You must configure the integration explicitly.
Option 1: environment variables
Configure all four values in the process environment:
Then call:
Use your deployment platform's secret manager or encrypted environment configuration. Do not commit real values to .env, examples, source files, CI logs, or documentation.
Option 2: explicit credentials
You can pass credentials directly for applications that obtain them from a secret manager at runtime:
Explicit values override environment values for the fields you provide. Apexify.js validates that all required credentials are present before creating the Imgur client and does not log their values.
Required fields
The integration requires:
clientIdclientSecretaccessTokenrefreshToken
If any value is missing, painter.output.url() throws instead of falling back to package-owned credentials.
Credential rotation notice
If you used or copied Imgur credentials that appeared in an older Apexify.js source revision, repository history, package artifact, example, or deployment configuration, treat those credentials as exposed. Revoke or rotate them in the Imgur account and replace them in your secret manager. Do not reuse historical values.
See also: Batch, save & encoded output.