kotlin-client.libraries.jvm-ktor.auth.OAuth.kt.mustache Maven / Gradle / Ivy
package {{packageName}}.auth
class OAuth : Authentication {
var accessToken: String? = null
override fun apply(query: MutableMap>, headers: MutableMap) {
val token: String = accessToken ?: return
headers["Authorization"] = "Bearer $token"
}
}