math/include/jwt/jwt.h

20 lines
285 B
C

#ifndef JWT_H
#define JWT_H
#ifdef __cplusplus
extern "C"
{
#endif
char* create_token(const char* user_id, const char* secret);
char* get_payload(const char* token);
int verify_token(const char* token, const char* secret);
#ifdef __cplusplus
}
#endif
#endif // JWT_H