createAccount

abstract suspend fun createAccount(    username: String,     email: String,     password: String,     profilePhotoUri: Uri? = null): AuthenticationResult

Used to create a new user account with the provided username, email,password and an optional profilePhotoUri. An instance of AuthenticationResult will be returned to indicate whether an account was successfully created or not.