Synchronising log out of discourse when logging out of WordPress

Hi there. I’m using Wordpress as an SSO client.
When I log out from Discourse, it logs me out from Wordpress thanks to the logout redirect parameter.
But when logging out of Wordpress, it doesn’t log out from Discourse. How can I achieve that?