KtorClientBearerTokenAuth
open class KtorClientBearerTokenAuth(sendWithoutRequest: Boolean, realm: String?) : KtorClientBearerAuth<BearerAuthTokens>
Content copied to clipboard
A Ktor client Bearer authentication scope that is passed tokens.
Constructors
Link copied to clipboard
fun KtorClientBearerTokenAuth(sendWithoutRequest: Boolean = true, realm: String? = null)
Content copied to clipboard
Functions
Link copied to clipboard
Used as Ktor's BearerAuthConfig.loadTokens.
Link copied to clipboard
suspend override fun refreshTokens(data: BearerAuthTokens, response: HttpResponse): BearerTokens?
Content copied to clipboard
Used as Ktor's BearerAuthConfig.refreshTokens. Calls loadTokens by default.