It looks like with Ktor v3.0.2 the `BearerToken.re...
# ktor
j
It looks like with Ktor v3.0.2 the
BearerToken.refreshToken
was made nullable. Is there any documentation/explanation on this change? I’m also unable to access
plugin(Auth).providers
to manually clear tokens.
a
The reason is described in https://youtrack.jetbrains.com/issue/KTOR-6928:
It is valid to not return a refreshToken but only an access_token when fetching the token using OAuth2 flow
You can use the following code to remove the current tokens from the storage:
Copy code
client.authProvider<BearerAuthProvider>()?.clearToken()