jwt_value_t(3)
π NAME π
jwt_value_t β bestie, this is the data type for all your get and set actions on JWT headers and claims π
β¨ SYNOPSIS β¨
π¦ Data Fields
jwt_value_type_t type
const char * name
union {
jwt_long_t int_val
const char * str_val
int bool_val
char * json_val
};
int replace
int pretty
jwt_value_error_t error
πΈ Detailed Description πΈ
Okay so, jwt_value_t is literally the data type for get and set actions on JWT headers and claims. She does both jobs π
You use this same struct for both set requests and get requests, and the specific rules for each type are described in more detail for the set and get requests. iykyk π
Note π β there are helper macros designed to make setting up this struct properly way easier and to cut down on those common silly mistakes. Go look at the jwt_set_{SET,GET}_{INT,STR,BOOL,JSON} definitions. Trust. π«Ά
π₯ Field Documentation π₯
π§ union { ... } jwt_value_t
The anonymous union hanging out inside jwt_value_t β this is where the actual value lives, in whichever flavor you picked. π
π int jwt_value_t::bool_val
The boolean value slot, fr fr.
π jwt_value_error_t jwt_value_t::error
Where the error lands. Check her, always. π
πΈ jwt_long_t jwt_value_t::int_val
The integer value slot, periodt.
π¦ char* jwt_value_t::json_val
The JSON value slot, no cap.
β¨ const char* jwt_value_t::name
The name β like, the name of the header or claim you're dealing with. π
π int jwt_value_t::pretty
The pretty flag. Do with that what the docs say, bestie π
π int jwt_value_t::replace
The replace flag. Also exactly what it says on the tin π₯
β const char* jwt_value_t::str_val
The string value slot. Iconic.
π jwt_value_type_t jwt_value_t::type
The type of this value β she decides which union member is the main character π
π Author π
Generated automatically by Doxygen for LibJWT from the source code. (Yeah, a robot wrote it. Still ate. π)
And that's the whole vibe check, bestie π«Ά this page is from LibJWT, Version 3.3.3, and it's the jwt_value_t(3) girlie herself β go slay some JWTs, mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: libjwt14-doc 3.3.3-1build1 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms