jwt_value_t(3)

πŸ“¦
version 3.3.3 Β· 2 versions
, in ubuntu stonking

πŸ’– 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