LoginWizard

interface LoginWizard

Set of methods to be able to login to an existing account on a homeserver.

More documentation can be found in the file https://github.com/element-hq/element-android/blob/main/docs/signin.md

Functions

Link copied to clipboard
abstract suspend fun getProfileInfo(matrixId: String): LoginProfileInfo

Get some information about a matrixId: displayName and avatar url.

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

Login to the homeserver.

Link copied to clipboard
abstract suspend fun loginCustom(data: JsonDict): Session

Login to the homeserver by sending a custom JsonDict. The data should contain at least one entry "type" with a String value.

Link copied to clipboard
abstract suspend fun loginWithToken(loginToken: String): Session

Exchange a login token to an access token.

Link copied to clipboard
abstract suspend fun resetPassword(email: String)

Ask the homeserver to reset the user password. The password will not be reset until resetPasswordMailConfirmed is successfully called.

Link copied to clipboard
abstract suspend fun resetPasswordMailConfirmed(newPassword: String, logoutAllDevices: Boolean = true)

Confirm the new password, once the user has checked their email When this method succeed, tha account password will be effectively modified.