cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::auth::TokenSet Struct Reference

OAuth access and refresh token state owned by the application. More...

#include <token.hpp>

Public Member Functions

bool expired (TimePoint now=SystemClock::now()) const
 Returns true when an expiry timestamp exists and is not in the future.
 

Public Attributes

std::string access_token
 
std::string token_type = "Bearer"
 
std::optional< std::string > refresh_token
 
std::optional< TimePoint > expires_at
 
ScopeList scopes
 
MetadataMap metadata
 

Detailed Description

OAuth access and refresh token state owned by the application.

Member Function Documentation

◆ expired()

bool mcp::auth::TokenSet::expired ( TimePoint  now = SystemClock::now()) const
inline

Returns true when an expiry timestamp exists and is not in the future.

Callers may apply their own refresh skew before using this helper.


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