Axios wrapper adding Digest Authentication support (RFC 2617). Version 0.3.0 is the latest stable release with TypeScript definitions included. The library wraps axios to automatically handle the WWW-Authenticate challenge, nonce, and response calculation for HTTP Digest access authentication. Unlike manual header construction, it provides a simple class-based interface with methods for GET, POST, PUT, PATCH, DELETE, and HEAD. No additional dependencies beyond the peer dependency axios.
npm install axios-digestNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating an AxiosDigest client and making a GET request with digest authentication.
Ensure the server sends a correct WWW-Authenticate header with a realm. The library parses the header and uses it for the digest response.
Use axios directly for unsupported methods, or extend the library.
Pass a pre-configured Axios instance via the customAxios constructor parameter if advanced features are needed.
Consider forking or using an alternative like 'axios-auth-digest' with more recent maintenance.
Use import AxiosDigest from 'axios-digest' (ESM) or const AxiosDigest = require('axios-digest').default (CJS, but prefer ESM).Ensure the endpoint requires digest authentication. The library expects a 401 response with a WWW-Authenticate header to trigger the digest handshake.
Use lowercase method names (get, post, put, patch, delete, head). Only these six are available.