Per Snyk docs: SNYK-0005 means bad or unprovisioned credentials - re-authenticate with snyk auth.

Context: Problem: Running snyk test prints "ERROR Authentication error (SNYK-0005)" with Status 401 Unauthorized. The credentials are not recognized, or user access is not provisioned. Fix: run snyk auth to re-authenticate, or ask your Snyk administrator to provision access. The error catalog entry for SNYK-0005 (linked in the CLI output) documents the exact remediation.