hi there just having some problems, i want to log the user out when clicking over onto a different webpage, also i want to refresh the page onViewPointEnter without it continuously refreshing the page over and over, i only want it refreshed once thanks
You can do it like this:
import wixUsers from 'wix-users';
$w('#elementId').onViewportLeave((event) => {
wixUsers.logout();
})
Ahmad
hi this doesn’t work
@millwards322 Can you provide your code as well as a link to your published site?