login
abstract suspend fun login( login: String, password: String, initialDeviceName: String, deviceId: String? = null): Session
Content copied to clipboard
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
initial Device Name
the initial device name
device Id
the device id, optional. If not provided or null, the server will generate one.