Can somebody point me to a sample project that aut...
# ktor
t
Can somebody point me to a sample project that authenticates users? I'm trying to understand the recommended pattern for using ktor with dependency injection. I have been just injecting the httpClient where needed, but when a user logs out and then back in as another user, the auth tokens in the httpClient bearerAuthProvider need to be invalidated. I don't see an easy way to force that invalidation with my setup.
a
You can use the code form this answer to clear tokens.
t
Thank you