Credentials
@JsonClass(generateAdapter = true )
This data class hold credentials user data. You shouldn't have to instantiate it. The access token should be use to authenticate user in all server requests. Ref: https://matrix.org/docs/spec/client_server/latest#post-matrix-client-r0-login
Constructors
Link copied to clipboard
constructor(@Json(name = "user_id" ) userId: String, @Json(name = "access_token" ) accessToken: String, @Json(name = "refresh_token" ) refreshToken: String?, @Json(name = "home_server" ) homeServer: String?, @Json(name = "device_id" ) deviceId: String, @Json(name = "well_known" ) discoveryInformation: DiscoveryInformation? = null)
Properties
Link copied to clipboard
An access token for the account. This access token can then be used to authorize other requests.
Link copied to clipboard
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.
Link copied to clipboard
The server_name of the homeserver on which the account has been registered.
Link copied to clipboard
Not documented.