okay.. I am looking at documentation my http clien...
# ktor
l
okay.. I am looking at documentation my http client to make a call server that is using OAuth and responding with bearer token. I am looking at https://github.com/ktorio/ktor-documentation/blob/main/codeSnippets/snippets/client-auth-oauth-google/src/main/kotlin/com/example/Application.kt and for inspiration. But it seems that I am having some syntax errors it seems that the bearer { loadTokens { blocks are not resolvable.. I am using ktor versions "1.5.3" .. does anyone have any experience in getting this to work in 1.5.3?
so it appears that I was able to resolve by issue by following the instructions (what a concept and changing my ktor version to 1.6.3) which I am not sure if I can do on the work project.. So any ideas on how to work around would be appreciated
a
This feature is available since Ktor 1.6.0 (KTOR-331) so you need that version of Ktor or above to use it.
l
@Aleksei Tirman [JB] .. thanks for for the minimum version and clearing that up.. really appreciate the response