Skip to content

Instantly share code, notes, and snippets.

@JoeStanton
JoeStanton / ntlm.js
Last active December 1, 2022 08:46
NTLM Authentication with node-fetch
/* eslint-disable no-console */
const https = require('https');
const fetch = require('node-fetch');
const ntlm = require('httpntlm').ntlm;
const keepAlive = new https.Agent({ keepAlive: true });
const handleErrors = (response) => {
if (!response.ok) {