Ready to build JWT

This commit is contained in:
2024-09-21 20:16:44 +02:00
parent 5db7593a4f
commit 561c49226b
5 changed files with 58 additions and 2 deletions

24
esp32_device/main/jwt.h Normal file
View File

@ -0,0 +1,24 @@
/**
* 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