import wixUsers from 'wix-users'; import wixLocation from 'wix-location'; $w.onReady(function () { wixUsers.onLogin((user) => { let userId = user.id; let isLoggedIn = user.loggedIn; // true let userRole = user.role; wixLocation.to("/new-page-6"); }); });
top of page
bottom of page