vertx / io.vertx.kotlin.ext.auth.mongo / io.vertx.ext.auth.mongo.MongoAuth / insertUserAwait

# insertUserAwait

`suspend fun MongoAuth.insertUserAwait(username: String, password: String, roles: List<String>, permissions: List<String>): String`

Suspending version of method io.vertx.ext.auth.mongo.MongoAuth.insertUser

### Parameters

`username` - the username to be set

`password` - the passsword in clear text, will be adapted following the definitions of the defined io.vertx.ext.auth.mongo.HashStrategy

`roles` - a list of roles to be set

`permissions` - a list of permissions to be set

Return

String

NOTE: This function has been automatically generated from io.vertx.ext.auth.mongo.MongoAuth using Vert.x codegen.