start

abstract suspend fun start(username: String, password: String, scope: String): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for TokenInfo>

Initiates the Resource Owner flow by exchanging credentials for tokens.

Return

Result.success with TokenInfo on successful authentication, or Result.failure with the error.

Parameters

username

the user's username or email.

password

the user's password.

scope

the scopes to request. Defaults to the client's configured default scope.