@lukesthl/ts-axios-digest-auth
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i @lukesthl/ts-axios-digest-auth

Weekly Downloads

96

Version

1.0.5

License

MIT

Unpacked Size

10.7 kB

Total Files

5

Last publish

Collaborators

  • lukesthl