You can add a call nanoflow button to the page where you want to be able to signout
The nanoflow does 2 actions
- calls a microflow that opens a page with (only) the appstore widget url-redirector on it (https://appstore.home.mendix.com/link/app/113/)
- Have the url-redirector refer to either an anonymous page in your app or an external page if need be
- calls a javascript action with only the logout function: // BEGIN USER CODE mx.logout(); // END USER CODE
That should do the trick. If anonymous doesnt have acces to the nanoflow the button will disappear when you navigate back to the page.