Skip to content
 
 

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axios-digest-auth

npm docs

A library which implements HTTP digest authentication in a manner which should be familiar to any project which also uses Axios.

Note: This is a forked version of the original @mhoc/axios-digest-auth repository that fixes the CSRF vulnerability issue present in the main repo.

Installation

npm i @ibrahimcavdar/axios-digest-auth

Usage

import AxiosDigestAuth from "@ibrahimcavdar/axios-digest-auth";

const digestAuth = new AxiosDigestAuth({
  username: "your-username",
  password: "your-password",
});

// Make requests with digest authentication
const response = await digestAuth.request({
  url: "https://example.com/api/data",
  method: "GET",
});

Check out the documentation site for more information on usage.

Features

  • Automatic HTTP Digest Authentication
  • Compatible with Axios request configuration
  • TypeScript support

License

MIT

About

Axios-like HTTP Digest Auth

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages