directAuthentication

abstract suspend fun directAuthentication(    homeServerConnectionConfig: HomeServerConnectionConfig,     matrixId: String,     password: String,     initialDeviceName: String,     deviceId: String? = null): Session

Authenticate with a matrixId and a password. Usually call this after a successful call to getWellKnownData().

Parameters

homeServerConnectionConfig

the information about the homeserver and other configuration

matrixId

the matrixId of the user

password

the password of the account

initialDeviceName

the initial device name

deviceId

the device id, optional. If not provided or null, the server will generate one.