onLogout( ) event handler issue

What is the code that isn’t working? Share your code so we can see what you are trying to do. Keep in mind that you should be writing to the DB collection from backend code with suppressAuth set to true .