|
cxxmcp 1.1.6
C++ MCP SDK
|
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 |
OAuth access and refresh token state owned by the application.
|
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.