1.0.5 • Published 1 year ago

@lukesthl/ts-axios-digest-auth v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago