SolarEnergy/esp32_device/main/jwt.h

25 lines
282 B
C
Raw Permalink Normal View History

2024-09-21 18:16:44 +00:00
/**
* JWT utilities
*/
#pragma once
#include <stddef.h>
#include "cJSON.h"
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Sign JWT token
*
* Return encoded JWT or NULL in case of failure
*/
char *jwt_gen(cJSON *payload);
#ifdef __cplusplus
}
#endif