26 #include <olp/core/CoreApi.h>
27 #include <olp/core/client/ApiError.h>
28 #include <olp/core/client/ApiResponse.h>
47 OauthToken(std::string access_token, time_t expiry_time);
55 OauthToken(std::string access_token, std::chrono::seconds expires_in);
84 std::string access_token_;
85 std::chrono::seconds expires_in_;
Represents a request outcome.
Definition: ApiResponse.h:65
A parsed response received from the OAuth2.0 token endpoint.
Definition: OauthToken.h:39
std::chrono::seconds GetExpiresIn() const
Gets the number of seconds the token is still valid for.
time_t GetExpiryTime() const
Gets the Epoch time when the token expires.
const std::string & GetAccessToken() const
Gets the access token issued by the authorization server.
OauthToken(std::string access_token, std::chrono::seconds expires_in)
Creates the OauthToken instance.
OauthToken()=default
Creates the default OauthToken instance.
OauthToken(std::string access_token, time_t expiry_time)
Creates the OauthToken instance.
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24