20 lines
282 B
C
20 lines
282 B
C
#ifndef JWT_H
|
|
#define JWT_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
char* create_token(const char* user, const char* secret);
|
|
|
|
char* get_payload(const char* token);
|
|
|
|
int verify_token(const char* token, const char* secret);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // JWT_H
|