81 std::optional<std::string> refreshToken = std::nullopt
101 using namespace Kazv;
Definition: refresh.hpp:38
std::string accessToken() const
The new access token to use.
Definition: refresh.cpp:87
std::optional< std::string > refreshToken() const
The new refresh token to use when the access token needs to be refreshed again.
Definition: refresh.cpp:98
JobResponse(Response r)
Definition: refresh.cpp:73
bool success() const
Definition: refresh.cpp:76
std::optional< int > expiresInMs() const
The lifetime of the access token, in milliseconds.
Definition: refresh.cpp:109
Refresh an access token.
Definition: refresh.hpp:32
static BaseJob::Body buildBody(std::optional< std::string > refreshToken)
Definition: refresh.cpp:21
static BaseJob::Query buildQuery()
Definition: refresh.cpp:13
static constexpr auto needsAuth()
Definition: refresh.hpp:65
RefreshJob(std::string serverUrl, std::optional< std::string > refreshToken=std::nullopt)
Refresh an access token.
Definition: refresh.cpp:39
RefreshJob withData(JsonWrap j) &&
Definition: refresh.cpp:59
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27
Definition: basejob.hpp:50