axios-like http digest auth


A library which implements HTTP digest authentication in a manner which should be familiar to any
project which also uses Axios.
> Note: This is a forked version of the original @mhoc/axios-digest-auth repository that fixes the CSRF vulnerability issue present in the main repo.
``bash`
npm i @ibrahimcavdar/axios-digest-auth
`typescript
import AxiosDigestAuth from "@ibrahimcavdar/axios-digest-auth";
const digestAuth = new AxiosDigestAuth({
username: "your-username",
password: "your-password",
});
// Make requests with digest authentication
const response = await digestAuth.request({
url: "https://example.com/api/data",
method: "GET",
});
``
Check out the documentation site for more information
on usage.
- Automatic HTTP Digest Authentication
- Compatible with Axios request configuration
- TypeScript support
MIT