registrationAvailable

abstract suspend fun registrationAvailable(userName: String): RegistrationAvailability

Can be call to check is the desired userName is available for registration on the current homeserver. It may also fails if the desired userName is not correctly formatted or does not follow any restriction on the homeserver. Ex: userName with only digits may be rejected.

Parameters

userName

the desired username. Ex: "alice"