DIGEST_AUTH

in what library is DIGEST_AUTH

You probably have more chance of answering that question than we do at this point. Please provide more information so we can have a chance of being able to help you.

/what's the error/
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266SSDP.h>
#include <ESP8266HTTPUpdateServer.h>
#include <FS.h>
#include <ArduinoJson.h>
#include <DNSServer.h>
#include <Wire.h>
#include <time.h>
#include <DS3231.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Max72xxPanel.h>

HTTP.on("/", {
if(!HTTP.authenticate("123", "123"))
return HTTP.requestAuthentication(DIGEST_AUTH, "realm", "authFailResponse");
HTTP.send(200, "text/html", readFile("configurat.html", 32000));
});

Arduino: 1.8.9 (Windows 10), Плата:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

C:\Users\Student\Desktop\Step11-GrafNoHTML\HTTP_init.ino: In lambda function:

HTTP_init:5:41: error: 'DIGEST_AUTH' was not declared in this scope

return HTTP.requestAuthentication(DIGEST_AUTH, "realm", "authFailResponse");

^

C:\Users\Student\Desktop\Step11-GrafNoHTML\HTTP_init.ino: In lambda function:

HTTP_init:10:41: error: 'DIGEST_AUTH' was not declared in this scope

return HTTP.requestAuthentication(DIGEST_AUTH, "realm", "authFailResponse");

^

exit status 1
'DIGEST_AUTH' was not declared in this scope