1#ifndef AUTHENTICATION_H
2#define AUTHENTICATION_H
Definition Authentication.h:12
WiFiClient client
WiFi client object.
Definition Authentication.h:52
bool checkSavedToken()
Checks for a saved JWT token and loads it if available.
Definition Authentication.cpp:177
void saveJWTTokenToFile(const char *token)
Saves a JWT token to a file on LittleFS.
Definition Authentication.cpp:83
char jwtToken[500]
Buffer for JWT token.
Definition Authentication.h:33
Authentication()
Default constructor for Authentication class.
Definition Authentication.cpp:23
boolean gotToken
Flag indicating whether a token has been retrieved.
Definition Authentication.h:38
char token[500]
Buffer for JWT token.
Definition Authentication.h:26
String readJWTTokenFromFile()
Reads JWT token from a file stored on LittleFS.
Definition Authentication.cpp:39
bool authenticate()
Authenticates the client with the server.
Definition Authentication.cpp:117
const char * jwtFilePath
Path to the file storing JWT token.
Definition Authentication.h:45