From 6f67af829a5664fa65927c8d3f204e8004fb0469 Mon Sep 17 00:00:00 2001 From: hfhbd <22521688+hfhbd@users.noreply.github.com> Date: Fri, 12 Apr 2024 15:14:06 +0200 Subject: [PATCH] KTOR-6928 Make refresh_token optional according to RFC 6749 --- .../io/ktor/client/plugins/auth/providers/BearerAuthProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktor-client/ktor-client-plugins/ktor-client-auth/common/src/io/ktor/client/plugins/auth/providers/BearerAuthProvider.kt b/ktor-client/ktor-client-plugins/ktor-client-auth/common/src/io/ktor/client/plugins/auth/providers/BearerAuthProvider.kt index eba27bdfbe..33fb1c2c05 100644 --- a/ktor-client/ktor-client-plugins/ktor-client-auth/common/src/io/ktor/client/plugins/auth/providers/BearerAuthProvider.kt +++ b/ktor-client/ktor-client-plugins/ktor-client-auth/common/src/io/ktor/client/plugins/auth/providers/BearerAuthProvider.kt @@ -23,7 +23,7 @@ public fun AuthConfig.bearer(block: BearerAuthConfig.() -> Unit) { public class BearerTokens( public val accessToken: String, - public val refreshToken: String + public val refreshToken: String? ) /**