redirect after login/signup

When you open the lightbox you have to make the code that you want to run in the promise in that function.

wixWindow.openLightbox("LightboxName")
  .then( (data) => {
    // Receives the data from the closed lightbox and here should the code be that you want to run the lightbox closes
  } );