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