Ready to build JWT
This commit is contained in:
24
esp32_device/main/jwt.h
Normal file
24
esp32_device/main/jwt.h
Normal 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
|
Reference in New Issue
Block a user