https://kotlinlang.org logo
#ktor
Title
# ktor
t

trc

01/28/2023, 9:49 PM
Regarding bearer authentication I found: https://ktor.io/docs/bearer-client.html#configure However, I do not need a refreshtoken, as it makes no sense in my case. Have I missed a function that only takes a single token? Currently I use DefaultRequest and just set my bearer header manually
t

Trevor Stone

01/28/2023, 10:46 PM
You could probably use this library and just use an empty string or null (not sure if null is valid) for the refresh token. Then when you set your refreshTokens function you could handle it however