authenticate

suspend fun HttpClient.authenticate(url: String = REFRESH_TOKEN_URL, additionalRequestBuilder: HttpRequestBuilder.() -> Unit = { }): TokenInfo

Return

TokenInfo

Parameters

url

auth url, REFRESH_TOKEN_URL by default

additionalRequestBuilder

additional HttpRequestBuilder lambda

Throws

ClientRequestException

on failed authorization