'How to clear bearer tokens in Ktor-client for Android

I am using Ktor client for Android together with the plugin: io.ktor:ktor-client-auth:1.6.4. The current implementation is similar to this snippet.

Now I want to implement a 'log out' function when after a button is clicked the tokens are deleted, the question is... how?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source