Open mitch85 opened 3 years ago
Same for me with 0.7.0
TypeError: AxiosDigestAuth is not a constructor
Same for me with 0.8.0
I was running into a similar issue and I fixed it by doing:
const AxiosDigestAuth = require('@mhoc/axios-digest-auth').default;
const digestAuth = new AxiosDigestAuth({username: "_______",password: "_______",});
const response = await digestAuth.request();
how to do that using import statement
import { default as DigestFetch } from "digest-fetch"
I used the following instead and it works. https://www.npmjs.com/package/@lukesthl/ts-axios-digest-auth
how to do that using import statement
import _AxiosDigestAuth from "@mhoc/axios-digest-auth"; const AxiosDigestAuth = _AxiosDigestAuth.default; const digestAuth = new AxiosDigestAuth({username: "",password: "",});
const response = await digestAuth.request();
Hi,
i install the package and clone your example Project.
i get an error :(