Go to the documentation of this file.
32 class RefreshJob :
public BaseJob {
81 std::optional<std::string> refreshToken = std::nullopt
101 using namespace Kazv;
static constexpr auto needsAuth()
Definition: refresh.hpp:69
JobResponse(Response r)
Definition: refresh.cpp:75
std::optional< std::string > refreshToken() const
The new refresh token to use when the access token needs to be refreshed again.
Definition: refresh.cpp:100
Definition: location.hpp:26
bool success() const
Definition: refresh.cpp:78
Definition: location.hpp:10
Definition: basejob.hpp:90
Definition: refresh.hpp:41
Refresh an access token.
Definition: refresh.hpp:34
RefreshJob(std::string serverUrl, std::optional< std::string > refreshToken=std::nullopt)
Refresh an access token.
Definition: refresh.cpp:41
Definition: location.hpp:10
std::string accessToken() const
The new access token to use.
Definition: refresh.cpp:89
Definition: jsonwrap.hpp:22
RefreshJob withData(JsonWrap j) &&
Definition: refresh.cpp:61
::Kazv::Body Body
Definition: basejob.hpp:100
std::optional< int > expiresInMs() const
The lifetime of the access token, in milliseconds.
Definition: refresh.cpp:111
static BaseJob::Body buildBody(std::optional< std::string > refreshToken)
Definition: refresh.cpp:23
static BaseJob::Query buildQuery()
Definition: refresh.cpp:15
Definition: basejob.hpp:50