kotlin-client.libraries.multiplatform.auth.OAuth.kt.mustache Maven / Gradle / Ivy
The newest version!
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"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy