I am using CSOM library with C# to upload some files to SharePoint. One requirement is to use 2FA. Basically, I am following this post: https://knowledge-junction.com/2017/12/24/office-365-connecting-to-sharepoint-online-site-using-csom-when-multi-factor-authentication-mfa-is-enabled-for-the-user/
The login is done with the help of SharePointPnPCoreOnline library. This is working perfectly.
When the user selects "remember me" during the login procedure, the user stays logged in even when the app is restarted. Now, I am wondering how can I manually log out? I do not see any method or hint how to do that.