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"); }); });

My Items

I'm a title. ​Click here to edit me.

$w.onReady(function () { wixUsers.onLogin((user) => { let userId = user.id; let isLoggedIn = user.loggedIn; // true let userRole = user.role; wixLocation.to("/new-page-6"); }); });