libQuotient
A Qt library for building matrix clients
Quotient::LoginJob::Response Struct Reference

#include <login.h>

Public Attributes

QString userId {}
 The fully-qualified Matrix ID for the account. More...
 
QString accessToken {}
 
QString refreshToken {}
 
std::optional< int > expiresInMs {}
 
QString deviceId {}
 
std::optional< DiscoveryInformationwellKnown {}
 

Detailed Description

Definition at line 149 of file login.h.

Member Data Documentation

◆ accessToken

QString Quotient::LoginJob::Response::accessToken {}

An access token for the account. This access token can then be used to authorize other requests.

Definition at line 155 of file login.h.

◆ deviceId

QString Quotient::LoginJob::Response::deviceId {}

ID of the logged-in device. Will be the same as the corresponding parameter in the request, if one was specified.

Definition at line 172 of file login.h.

◆ expiresInMs

std::optional<int> Quotient::LoginJob::Response::expiresInMs {}

The lifetime of the access token, in milliseconds. Once the access token has expired a new access token can be obtained by using the provided refresh token. If no refresh token is provided, the client will need to re-log in to obtain a new access token. If not given, the client can assume that the access token will not expire.

Definition at line 168 of file login.h.

◆ refreshToken

QString Quotient::LoginJob::Response::refreshToken {}

A refresh token for the account. This token can be used to obtain a new access token when it expires by calling the /refresh endpoint.

Definition at line 160 of file login.h.

◆ userId

QString Quotient::LoginJob::Response::userId {}

The fully-qualified Matrix ID for the account.

Definition at line 151 of file login.h.

◆ wellKnown

std::optional<DiscoveryInformation> Quotient::LoginJob::Response::wellKnown {}

Optional client configuration provided by the server. If present, clients SHOULD use the provided object to reconfigure themselves, optionally validating the URLs within. This object takes the same form as the one returned from .well-known autodiscovery.

Definition at line 178 of file login.h.


The documentation for this struct was generated from the following file: