qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::jwt::CreateOptions Struct Reference

JWT creation options. More...

#include <crypto_jwt.h>

Public Attributes

Algorithm algorithm
 The signing algorithm to use.
std::string key
 Secret key for HMAC algorithms, or PEM-encoded private key for asymmetric algorithms.
std::optional< std::string > type
 Optional token type, typically "JWT".
std::optional< std::string > content_type
 Optional content type.
std::optional< std::string > key_id
 Optional key ID.
std::map< std::string, std::string > header_claims
 Additional custom claims to include in the JWT header.

Detailed Description

JWT creation options.

Member Data Documentation

◆ type

std::optional<std::string> qb::jwt::CreateOptions::type

Optional token type, typically "JWT".

Added to header typ claim.

◆ content_type

std::optional<std::string> qb::jwt::CreateOptions::content_type

Optional content type.

Added to header cty claim.

◆ key_id

std::optional<std::string> qb::jwt::CreateOptions::key_id

Optional key ID.

Added to header kid claim.