I am using oauth (Stack Overflow) in an electron desktop app and there is a webview which loads the oauth url. I have a signout button in my app which will signout the user from Stack Overflow website and also from the app. How can I do this ?
How to remove all session cookies from the webview in electron app ?
You can remove cookies using Electron's
cookies.remove()
function (https://electron.atom.io/docs/api/cookies/#cookiesremoveurl-name-callback)The trick is to convert
cookie.domain
intourl
.