@meathill/digest-fetch
v0.1.4
Published
A tiny fetch wrapper to add digest auth support, without any dependencies.
Downloads
2
Readme
Digest fetch
This is a simple wrapper for fetch, to make a request with digest auth.
It uses no dependencies, can work in Edge Function environment.
Usage
import digestFetch from '@meathill/digest-fetch';
const response = await digestFetch(
url,
{ // data
foo: 'bar',
},
{
method: 'POST',
realm: 'realm',
username: 'username',
password: 'password',
},
);