fetchAccessToken

suspend fun fetchAccessToken(username: String, password: CharArray): Result<OAuthResponse>

This function fetches new access token from the authentication server and then creates a new account if none exists; otherwise it updates the existing account.