@lukesthl/ts-axios-digest-auth
v1.0.5
Published
A library which implements HTTP digest authentication for axios clients. With generic typescript support
Downloads
1,295
Maintainers
Readme
ts-axios-digest-auth
A library which implements HTTP digest authentication for axios clients. With generic typescript support
Install
npm install @lukesthl/ts-axios-digest-auth
Usage
import { AxiosDigestAuth } from '@lukesthl/ts-axios-digest-auth';
const digestAuthClient = new AxiosDigestAuth({
username: MY_DIGEST_USERNAME,
password: MY_DIGEST_PASSWORD,
});
await digestAuthClient.get('https://example.com');
API
AxiosDigestAuth
username
Type: string
password
Type: string
axios (optional)
Type: AxiosInstance
Special Thanks
This is an fork of @mhoc's axios-digest-auth package, with typescript support