invoke

suspend fun invoke(username: String): User

Retrieves a user by their username.

Return

The user with the specified username.

Parameters

username

The username of the user to retrieve.

Throws

if the user is not found.