@ibrahimcavdar/axios-digest-auth
v0.9.0
Published
axios-like http digest auth
Readme
axios-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.
Installation
npm i @ibrahimcavdar/axios-digest-authUsage
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.
Features
- Automatic HTTP Digest Authentication
- Compatible with Axios request configuration
- TypeScript support
License
MIT
