In the API reference it says “Usually, you want to call the onLogout() function in the Global (Site) tab of the code panel so that the onLogout() event handler runs no matter which page on your site a member uses to log out.”
Sad muppet that I am I can’t find the Global/Site tab! At first, I thought it must mean the events.js but when I tried to add
import{ authentication }from'wix-members';
It just highlighted ‘wix-members’ and displayed the error message 'cannot find module ‘wix-members’.
Where should I put this to ensure it runs whenever and wherever the user logs out from?