Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::jwt::SignOptions Struct Reference

Registered claims sign() adds. Claims already present in the payload win. More...

#include <JwtAuth.hpp>

Public Attributes

std::chrono::seconds expires_in {0}
 "exp" = now + this; zero adds no "exp"
 
std::chrono::seconds not_before {0}
 "nbf" = now + this; zero adds no "nbf"
 
std::string issuer
 "iss", if set
 
std::string audience
 "aud", if set
 
std::string subject
 "sub", if set
 

Detailed Description

Registered claims sign() adds. Claims already present in the payload win.

Member Data Documentation

◆ audience

std::string orbit::jwt::SignOptions::audience

"aud", if set

◆ expires_in

std::chrono::seconds orbit::jwt::SignOptions::expires_in {0}

"exp" = now + this; zero adds no "exp"

◆ issuer

std::string orbit::jwt::SignOptions::issuer

"iss", if set

◆ not_before

std::chrono::seconds orbit::jwt::SignOptions::not_before {0}

"nbf" = now + this; zero adds no "nbf"

◆ subject

std::string orbit::jwt::SignOptions::subject

"sub", if set


The documentation for this struct was generated from the following file: