I am encountering an issue when attempting to open the login Lightbox using authentication.promptLogin(); after a member logs out. Despite trying several approaches below, the login Lightbox does not open following the logout process. Could you please provide assistance or guidance on how to resolve this?
Thank you.
After logging out, Wix might not immediately allow authentication.promptLogin();
to open the login Lightbox due to session delays or page state. A quick fix is to use a setTimeout() function to delay calling authentication.promptLogin();
by a few milliseconds after logout. Alternatively, ensure the Lightbox is enabled in Wix settings and not blocked by any browser pop-up restrictions. If the issue persists, try manually triggering the Lightbox using $w("#yourLightbox").show();
right after logout. Let me know if you need help testing this.