ktor-client-auth / io.ktor.client.features.auth.providers / BearerAuthConfig

BearerAuthConfig

class BearerAuthConfig

BearerAuthProvider configuration.

Constructors

<init>

BearerAuthConfig()

BearerAuthProvider configuration.

Properties

realm

var realm: String?

Functions

loadTokens

fun loadTokens(block: suspend () -> BearerTokens?): Unit

refreshTokens

fun refreshTokens(block: suspend (response: HttpResponse) -> BearerTokens?): Unit

sendWithoutRequest

fun sendWithoutRequest(block: (HttpRequestBuilder) -> Boolean): Unit

Send credentials in without waiting for HttpStatusCode.Unauthorized.