login

abstract suspend fun login(    login: String,     password: String,     initialDeviceName: String,     deviceId: String? = null): Session

Login to the homeserver.

Return

a Session if the login is successful

Parameters

login

the login field. Can be a user name, or a msisdn (email or phone number) associated to the account

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.