@lukesthl/ts-axios-digest-auth

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@lukesthl/ts-axios-digest-auth
001.0.5a year agoa year agoMinified + gzip package size for @lukesthl/ts-axios-digest-auth in KB

Readme

ts-axios-digest-auth
!npm packagenpm-imgnpm-url !Build Statusbuild-imgbuild-url !Downloadsdownloads-imgdownloads-url !Issuesissues-imgissues-url !Code Coveragecodecov-imgcodecov-url !Commitizen Friendlycommitizen-imgcommitizen-url !Semantic Releasesemantic-release-imgsemantic-release-url
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