/ts-axios-digest-auth

A library which implements HTTP digest authentication for axios clients. With generic typescript support

Primary LanguageTypeScriptMIT LicenseMIT

ts-axios-digest-auth

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

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