For a signout button, you can use a Java action to perform the sign out, and use that in a microflow. There is a forum post about this at https://forum.mendix.com/questions/1933/How-would-i-logout-of-mendix-via-a-microflow.
I fixed by another workarround:
No need for custom Java...