5 #include <Quotient/csapi/definitions/auth_data.h>
7 #include <Quotient/jobs/basejob.h>
50 explicit GenerateLoginTokenJob(
const std::optional<AuthenticationData>& auth = std::nullopt);
55 QString loginToken()
const {
return loadFromJson<QString>(
"login_token"_L1); }
59 int expiresInMs()
const {
return loadFromJson<
int>(
"expires_in_ms"_L1); }
71 template <std::derived_from<GenerateLoginTokenJob> JobT>
72 constexpr inline auto doCollectResponse<JobT> = [](JobT* j) -> GenerateLoginTokenJob::Response {
73 return { j->loginToken(), j->expiresInMs() };